Submitter | Pierre-Yves David |
---|---|
Date | Aug. 18, 2014, 11:36 p.m. |
Message ID | <dc71811ffcd0443fbec9.1408405011@marginatus.alto.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/5484/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -2523,15 +2523,10 @@ def revert(ui, repo, ctx, parents, *pats if abs not in repo.dirstate: if exact: ui.warn(_('file not managed: %s\n') % rel) continue - # parent is target, no changes mean no changes - if node == parent: - if exact: - ui.warn(_('no changes needed to %s\n') % rel) - continue if not opts.get('dry_run'): _performrevert(repo, parents, ctx, actions) if targetsubs: