changeset 22234:fe9fc29ac2d0

revert: add a message to noop action This prepares for the arrival of a second "not touching file" action: revert of an untracked file.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Sat, 02 Aug 2014 13:07:01 -0700
parents 4ab61b24e20c
children 41a07d4f909f
files mercurial/cmdutil.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.