revert: add a message to noop action
This prepares for the arrival of a second "not touching file" action:
revert of an untracked file.
--- 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.