diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -2470,7 +2470,7 @@ def revert(ui, repo, ctx, parents, *pats 'add': ([], _('adding %s\n')), 'remove': ([], removeforget), 'undelete': ([], _('undeleting %s\n')), - 'noop': (None, None), + 'noop': (None, _('no changes needed to %s\n')), } @@ -2514,7 +2514,7 @@ def revert(ui, repo, ctx, parents, *pats msg = msg(abs) ui.status(msg % rel) elif exact: - ui.warn(_('no changes needed to %s\n') % rel) + ui.warn(msg % rel) break else: # Not touched in current dirstate.