# HG changeset patch # User Pierre-Yves David # Date 1407010021 25200 # Node ID fe9fc29ac2d0bf4cb110494cf3658fc4a6db002d # Parent 4ab61b24e20c8edb7d7dc16dcb6038154fcdec50 revert: add a message to noop action This prepares for the arrival of a second "not touching file" action: revert of an untracked file. diff -r 4ab61b24e20c -r fe9fc29ac2d0 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Fri Aug 01 11:41:56 2014 -0700 +++ b/mercurial/cmdutil.py Sat Aug 02 13:07:01 2014 -0700 @@ -2470,7 +2470,7 @@ '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 @@ 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.