diff mercurial/commands.py @ 3520:2fb30a9d2b3b

Remove the undo command, deprecated pre-0.9
author Matt Mackall <mpm@selenic.com>
date Wed, 25 Oct 2006 17:53:24 -0500
parents fb031f47890f
children ba94e80e5540
line wrap: on
line diff
--- a/mercurial/commands.py	Wed Oct 25 17:47:53 2006 -0500
+++ b/mercurial/commands.py	Wed Oct 25 17:53:24 2006 -0500
@@ -2729,17 +2729,6 @@
                                    'bundle:' + fname)
     return postincoming(ui, repo, modheads, opts['update'])
 
-def undo(ui, repo):
-    """undo the last commit or pull (DEPRECATED)
-
-    (DEPRECATED)
-    This command is now deprecated and will be removed in a future
-    release. Please use the rollback command instead.  For usage
-    instructions, see the rollback command.
-    """
-    ui.warn(_('(the undo command is deprecated; use rollback instead)\n'))
-    repo.rollback()
-
 def update(ui, repo, node=None, merge=False, clean=False, force=None,
            branch=None):
     """update or merge working directory
@@ -3169,7 +3158,6 @@
          [('u', 'update', None,
            _('update to new tip if changesets were unbundled'))],
          _('hg unbundle [-u] FILE')),
-    "debugundo|undo": (undo, [], _('hg undo')),
     "^update|up|checkout|co":
         (update,
          [('b', 'branch', '',