revert: add a message to noop action
authorPierre-Yves David <pierre-yves.david@fb.com>
Sat, 02 Aug 2014 13:07:01 -0700
changeset 22234 fe9fc29ac2d0
parent 22233 4ab61b24e20c
child 22235 41a07d4f909f
revert: add a message to noop action This prepares for the arrival of a second "not touching file" action: revert of an untracked file.
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.