Remove deprecated commit -t option
authorMatt Mackall <mpm@selenic.com>
Mon, 24 Oct 2005 20:42:20 -0700
changeset 1443 3a0b69ea5708
parent 1442 d32dbf86b88d
child 1444 f84ed9c6131d
Remove deprecated commit -t option
mercurial/commands.py
tests/test-update-reverse
tests/test-update-reverse.out
--- a/mercurial/commands.py	Mon Oct 24 19:55:44 2005 -0700
+++ b/mercurial/commands.py	Mon Oct 24 20:42:20 2005 -0700
@@ -743,10 +743,7 @@
     The HGEDITOR or EDITOR environment variables are used to start an
     editor to add a commit comment.
     """
-    if opts['text']:
-        ui.warn(_("Warning: -t and --text is deprecated,"
-                  " please use -m or --message instead.\n"))
-    message = opts['message'] or opts['text']
+    message = opts['message']
     logfile = opts['logfile']
 
     if message and logfile:
@@ -2188,7 +2185,6 @@
           ('I', 'include', [], _('include names matching the given patterns')),
           ('X', 'exclude', [], _('exclude names matching the given patterns')),
           ('m', 'message', "", _('use <text> as commit message')),
-          ('t', 'text', "", _('commit message (deprecated: use -m)')),
           ('l', 'logfile', "", _('read the commit message from <file>')),
           ('d', 'date', "", _('record datecode as commit date')),
           ('u', 'user', "", _('record user as commiter'))],
--- a/tests/test-update-reverse	Mon Oct 24 19:55:44 2005 -0700
+++ b/tests/test-update-reverse	Mon Oct 24 20:42:20 2005 -0700
@@ -7,7 +7,7 @@
 
 touch main
 hg add main
-hg commit -t "Added main" -d "0 0"
+hg commit -m "Added main" -d "0 0"
 hg checkout 0
 
 echo Main should be gone
--- a/tests/test-update-reverse.out	Mon Oct 24 19:55:44 2005 -0700
+++ b/tests/test-update-reverse.out	Mon Oct 24 20:42:20 2005 -0700
@@ -1,4 +1,3 @@
-Warning: -t and --text is deprecated, please use -m or --message instead.
 Main should be gone
 a
 changeset:   3:91ebc10ed028