Change all references to -t --text commit message to -m and --message.
--- 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 <text> use <text> as commit message
+ -m, --message <text> use <text> as commit message
-l, --logfile <file> show the commit message for the given file
-d, --date <datecode> record datecode as commit date
-u, --user <user> record user as commiter
@@ -358,7 +358,7 @@
options:
-l, --local make the tag local
- -m, --text <text> message for tag commit log entry
+ -m, --message <text> message for tag commit log entry
-d, --date <datecode> datecode for commit
-u, --user <user> user for commit
--- 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'),
--- 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
--- 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
--- 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