Submitter | Martin von Zweigbergk |
---|---|
Date | May 21, 2015, 9:32 p.m. |
Message ID | <3fec5bc8607568164efc.1432243950@waste.org> |
Download | mbox | patch |
Permalink | /patch/9223/ |
State | Accepted |
Delegated to: | Augie Fackler |
Headers | show |
Comments
Patch
diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -1945,7 +1945,8 @@ # platforms without shell expansion (windows). wctx = repo[None] match, pats = scmutil.matchandpats(wctx, pats, opts) - slowpath = match.anypats() or (match.files() and opts.get('removed')) + slowpath = match.anypats() or ((match.isexact() or match.prefix()) and + opts.get('removed')) if not slowpath: for f in match.files(): if follow and f not in wctx: