Submitter | Martin von Zweigbergk |
---|---|
Date | May 21, 2015, 9:32 p.m. |
Message ID | <57b2ad183735e615d30f.1432243953@waste.org> |
Download | mbox | patch |
Permalink | /patch/9226/ |
State | Accepted |
Delegated to: | Augie Fackler |
Headers | show |
Comments
Patch
diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -985,7 +985,7 @@ # fast path -- filter the other way around, since typically files is # much smaller than dmap return [f for f in files if f in dmap] - if not match.anypats() and all(fn in dmap for fn in files): + if match.prefix() and all(fn in dmap for fn in files): # fast path -- all the values are known to be files, so just return # that return list(files)