Comments
Patch
@@ -2468,11 +2468,11 @@ def revert(ui, repo, ctx, parents, *pats
# (<list of file>, message>) tuple
actions = {'revert': ([], _('reverting %s\n')),
'add': ([], _('adding %s\n')),
'remove': ([], removeforget),
'undelete': ([], _('undeleting %s\n')),
- 'noop': (None, None),
+ 'noop': (None, _('no changes needed to %s\n')),
}
# should we do a backup ?
backup = not opts.get('no_backup')
@@ -2512,11 +2512,11 @@ def revert(ui, repo, ctx, parents, *pats
if ui.verbose or not exact:
if not isinstance(msg, basestring):
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.
# file is unknown in parent, restore older version or ignore.