changeset 763:84f9ac74cc30

Added deprecation warnings if -t or --text is used for commits.
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 22 Jul 2005 16:27:30 +0100
parents 312b4a10d862
children eea96285cbf9
files mercurial/commands.py
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Fri Jul 22 16:26:46 2005 +0100
+++ b/mercurial/commands.py	Fri Jul 22 16:27:30 2005 +0100
@@ -460,6 +460,9 @@
 
 def commit(ui, repo, *files, **opts):
     """commit the specified files or all outstanding changes"""
+    if opts['text']:
+        ui.warn("Warning: -t and --text is deprecated,"
+                " please use -m or --message instead.\n")
     message = opts['message'] or opts['text']
     logfile = opts['logfile']
     if not message and logfile:
@@ -791,6 +794,9 @@
 
 def rawcommit(ui, repo, *flist, **rc):
     "raw commit interface"
+    if rc['text']:
+        ui.warn("Warning: -t and --text is deprecated,"
+                " please use -m or --message instead.\n")
     message = rc['message'] or rc['text']
     if not message and rc['logfile']:
         try:
@@ -987,6 +993,9 @@
 
 def tag(ui, repo, name, rev=None, **opts):
     """add a tag for the current tip or a given revision"""
+    if opts['text']:
+        ui.warn("Warning: -t and --text is deprecated,"
+                " please use -m or --message instead.\n")
     if name == "tip":
         ui.warn("abort: 'tip' is a reserved name!\n")
         return -1