Submitter | Siddharth Agarwal |
---|---|
Date | March 23, 2013, 2:37 a.m. |
Message ID | <009929458ae8a97e342f.1364006224@sid0x220> |
Download | mbox | patch |
Permalink | /patch/1173/ |
State | Superseded |
Commit | a18919de61e5a11747a8856e6acfbaaa457fb479 |
Headers | show |
Comments
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