changeset 2238:25af3f17ce95

undo: add "deprecated" message to output.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Tue, 09 May 2006 13:29:55 -0700
parents 4a069064a39b
children 56fddd98fef5 abd70a92e06f
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Tue May 09 11:12:45 2006 -0700
+++ b/mercurial/commands.py	Tue May 09 13:29:55 2006 -0700
@@ -2712,6 +2712,7 @@
     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,