changeset 1443:3a0b69ea5708

Remove deprecated commit -t option
author Matt Mackall <mpm@selenic.com>
date Mon, 24 Oct 2005 20:42:20 -0700
parents d32dbf86b88d
children f84ed9c6131d
files mercurial/commands.py tests/test-update-reverse tests/test-update-reverse.out
diffstat 3 files changed, 2 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -743,10 +743,7 @@ def commit(ui, repo, *pats, **opts):
     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 @@ table = {
           ('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
+++ b/tests/test-update-reverse
@@ -7,7 +7,7 @@ hg commit -m "Added a" -d "0 0"
 
 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
+++ b/tests/test-update-reverse.out
@@ -1,4 +1,3 @@
-Warning: -t and --text is deprecated, please use -m or --message instead.
 Main should be gone
 a
 changeset:   3:91ebc10ed028