diff mercurial/commands.py @ 1657:dbb8bba48510

deprecate the rawcommit command
author Matt Mackall <mpm@selenic.com>
date Sun, 29 Jan 2006 19:06:42 +1300
parents b7fc961507db
children b11507d6d16d
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Jan 29 18:38:56 2006 +1300
+++ b/mercurial/commands.py	Sun Jan 29 19:06:42 2006 +1300
@@ -1793,13 +1793,19 @@
     return r
 
 def rawcommit(ui, repo, *flist, **rc):
-    """raw commit interface
+    """raw commit interface (DEPRECATED)
 
     Lowlevel commit, for use in helper scripts.
 
     This command is not intended to be used by normal users, as it is
     primarily useful for importing from other SCMs.
+
+    This command is now deprecated and will be removed in a future
+    release, please use debugsetparents and commit instead.
     """
+
+    ui.warn(_("(the rawcommit command is deprecated)\n"))
+
     message = rc['message']
     if not message and rc['logfile']:
         try: