# HG changeset patch # User Benoit Boissinot # Date 1131007385 28800 # Node ID 3cf287a0366412a62ee187ad36db7aded3dd8a03 # Parent 1e265c2bec9442573e75514fe04d56c373780804 remove the deprecated --text (t) option to rawcommit and tag diff -r 1e265c2bec94 -r 3cf287a03664 mercurial/commands.py --- a/mercurial/commands.py Wed Nov 02 20:22:29 2005 -0800 +++ b/mercurial/commands.py Thu Nov 03 00:43:05 2005 -0800 @@ -1705,10 +1705,7 @@ This command is not intended to be used by normal users, as it is primarily useful for importing from other SCMs. """ - if rc['text']: - ui.warn(_("Warning: -t and --text is deprecated," - " please use -m or --message instead.\n")) - message = rc['message'] or rc['text'] + message = rc['message'] if not message and rc['logfile']: try: message = open(rc['logfile']).read() @@ -1980,9 +1977,6 @@ similarly to other project files and can be hand-edited if necessary. """ - if opts['text']: - ui.warn(_("Warning: -t and --text is deprecated," - " please use -m or --message instead.\n")) if name == "tip": raise util.Abort(_("the name 'tip' is reserved")) if rev: @@ -2007,7 +2001,7 @@ if repo.dirstate.state(".hgtags") == '?': repo.add([".hgtags"]) - message = (opts['message'] or opts['text'] or + message = (opts['message'] or _("Added tag %s for changeset %s") % (name, r)) try: repo.commit([".hgtags"], message, opts['user'], opts['date']) @@ -2291,7 +2285,6 @@ ('u', 'user', "", _('user')), ('F', 'files', "", _('file list')), ('m', 'message', "", _('commit message')), - ('t', 'text', "", _('commit message (deprecated: use -m)')), ('l', 'logfile', "", _('commit message file'))], _('hg rawcommit [OPTION]... [FILE]...')), "recover": (recover, [], _("hg recover")), @@ -2339,7 +2332,6 @@ (tag, [('l', 'local', None, _('make the tag local')), ('m', 'message', "", _('message for tag commit log entry')), - ('t', 'text', "", _('commit message (deprecated: use -m)')), ('d', 'date', "", _('record datecode as commit date')), ('u', 'user', "", _('record user as commiter'))], _('hg tag [OPTION]... NAME [REV]')),