Submitter | Pierre-Yves David |
---|---|
Date | Aug. 14, 2014, 9:35 p.m. |
Message ID | <cb437f41f3d1523b2a56.1408052159@marginatus.alto.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/5400/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -2486,13 +2486,11 @@ def revert(ui, repo, ctx, parents, *pats else: # Not touched in current dirstate. # file is unknown in parent, restore older version or ignore. if abs not in repo.dirstate: - if mfentry: - handle(actions['add'], True) - elif exact: + if exact: ui.warn(_('file not managed: %s\n') % rel) continue # parent is target, no changes mean no changes if node == parent: