# HG changeset patch # User Andrew Thompson # Date 1122044353 -3600 # Node ID 0fb49845890525db0fbc377dd32251197183efef # Parent 73540173e14c9039432fb3b236eb9e3d40233f06 Change all references to -t --text commit message to -m and --message. diff -r 73540173e14c -r 0fb498458905 doc/hg.1.txt --- a/doc/hg.1.txt Fri Jul 22 09:54:22 2005 +0100 +++ b/doc/hg.1.txt Fri Jul 22 15:59:13 2005 +0100 @@ -112,7 +112,7 @@ Options: -A, --addremove run addremove during commit - -m, --text use as commit message + -m, --message use as commit message -l, --logfile show the commit message for the given file -d, --date record datecode as commit date -u, --user record user as commiter @@ -358,7 +358,7 @@ options: -l, --local make the tag local - -m, --text message for tag commit log entry + -m, --message message for tag commit log entry -d, --date datecode for commit -u, --user user for commit diff -r 73540173e14c -r 0fb498458905 mercurial/commands.py --- a/mercurial/commands.py Fri Jul 22 09:54:22 2005 +0100 +++ b/mercurial/commands.py Fri Jul 22 15:59:13 2005 +0100 @@ -460,7 +460,7 @@ def commit(ui, repo, *files, **opts): """commit the specified files or all outstanding changes""" - text = opts['text'] + text = opts['message'] or opts['text'] logfile = opts['logfile'] if not text and logfile: try: @@ -1101,7 +1101,7 @@ "^commit|ci": (commit, [('A', 'addremove', None, 'run add/remove during commit'), - ('m', 'text', "", 'commit message'), + ('m', 'message', "", 'commit message'), ('t', 'text', "", 'commit message (deprecated: use -m)'), ('l', 'logfile', "", 'commit text file'), ('d', 'date', "", 'date code'), diff -r 73540173e14c -r 0fb498458905 tests/README --- a/tests/README Fri Jul 22 09:54:22 2005 +0100 +++ b/tests/README Fri Jul 22 15:59:13 2005 +0100 @@ -18,13 +18,13 @@ - hg commit and hg up -m want user interaction - for commit use -t "text" + for commit use -m "text" for hg up -m, set HGMERGE to something noninteractive (like true or merge) - changeset hashes will change based on user and date which make things like hg history output change - use commit -t "test" -u test -d "0 0" + use commit -m "test" -u test -d "0 0" - diff will show the current time diff -r 73540173e14c -r 0fb498458905 tests/test-basic --- a/tests/test-basic Fri Jul 22 09:54:22 2005 +0100 +++ b/tests/test-basic Fri Jul 22 15:59:13 2005 +0100 @@ -6,7 +6,7 @@ hg init echo a > a hg add a -hg commit -t test -d "0 0" +hg commit -m test -d "0 0" hg history hg manifest hg cat a diff -r 73540173e14c -r 0fb498458905 tests/test-basic.out --- a/tests/test-basic.out Fri Jul 22 09:54:22 2005 +0100 +++ b/tests/test-basic.out Fri Jul 22 15:59:13 2005 +0100 @@ -3,7 +3,7 @@ + hg init + echo a + hg add a -+ hg commit -t test -d '0 0' ++ hg commit -m test -d '0 0' + hg history changeset: 0:acb14030fe0a21b60322c440ad2d20cf7685a376 tag: tip