# HG changeset patch # User Vadim Gelfer # Date 1147206595 25200 # Node ID 25af3f17ce95d38fce90ec5012fa424a0befc870 # Parent 4a069064a39befcdc238a13d8dc75e9b918f65c6 undo: add "deprecated" message to output. diff --git a/mercurial/commands.py b/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,