Submitter | Siddharth Agarwal |
---|---|
Date | March 25, 2013, 9:27 p.m. |
Message ID | <ace6759b143ae99c665f.1364246827@sid0x220> |
Download | mbox | patch |
Permalink | /patch/1193/ |
State | Accepted |
Commit | a18919de61e5a11747a8856e6acfbaaa457fb479 |
Headers | show |
Comments
On Mon, Mar 25, 2013 at 2:27 PM, Siddharth Agarwal <sid0@fb.com> wrote: > dirstate.walk: fast path none-seen + match-always case for step 3 > Series crewed, thanks.
Patch
diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py --- a/mercurial/dirstate.py +++ b/mercurial/dirstate.py @@ -702,7 +702,12 @@ class dirstate(object): # step 3: report unseen items in the dmap hash if not skipstep3 and not exact: - visit = sorted([f for f in dmap if f not in results and matchfn(f)]) + if not results and matchalways: + visit = dmap.keys() + else: + visit = [f for f in dmap if f not in results and matchfn(f)] + visit.sort() + if unknown: # unknown == True means we walked the full directory tree above. # So if a file is not seen it was either a) not matching matchfn