diff mercurial/commands.py @ 2362:482d3fb47d80

Renamed localrepo.undo() to rollback() and talk about "rollback information".
author Thomas Arendsen Hein <thomas@intevation.de>
date Thu, 01 Jun 2006 19:08:29 +0200
parents 2db831b33e8f
children fa4c11751367 8238a3f039e6
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2432,7 +2432,7 @@ def rollback(ui, repo):
     repository; for example an in-progress pull from the repository
     may fail if a rollback is performed.
     """
-    repo.undo()
+    repo.rollback()
 
 def root(ui, repo):
     """print the root (top) of the current working dir
@@ -2757,7 +2757,7 @@ def undo(ui, repo):
     instructions, see the rollback command.
     """
     ui.warn(_('(the undo command is deprecated; use rollback instead)\n'))
-    repo.undo()
+    repo.rollback()
 
 def update(ui, repo, node=None, merge=False, clean=False, force=None,
            branch=None, **opts):