undo: add "deprecated" message to output.
authorVadim Gelfer <vadim.gelfer@gmail.com>
Tue, 09 May 2006 13:29:55 -0700
changeset 2238 25af3f17ce95
parent 2237 4a069064a39b
child 2240 56fddd98fef5
child 2241 abd70a92e06f
undo: add "deprecated" message to output.
mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2712,6 +2712,7 @@ def undo(ui, repo):
     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.undo()
 
 def update(ui, repo, node=None, merge=False, clean=False, force=None,