# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1407010021 25200
#      Sat Aug 02 13:07:01 2014 -0700
# 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 --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -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.