Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 22156:03a45eff9d2b
revert: issue "no changes needed" message for files missing on both side
When a file was marked as removed in the working copy and did not existed in the
target of the revert, we did not issued any message pointing that no change was
needed to the file (implicitly saying that revert had changed the file).
We now properly issue a message in this situation. Tests change in and handful
of case where the message was documented as missing.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 31 Jul 2014 16:03:26 -0700 |
parents | 530390629842 |
children | d3702a822241 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Tue Jun 24 15:47:12 2014 +0100 +++ b/mercurial/cmdutil.py Thu Jul 31 16:03:26 2014 -0700 @@ -2466,7 +2466,11 @@ for table, (action, backup) in disptable: if abs not in table: continue - if action is not None: + if action is None: + if exact: + ui.warn(_('no changes needed to %s\n') % rel) + + else: handle(action, backup) break else: