# HG changeset patch # User Simon Heimberg # Date 1242323272 -7200 # Node ID 9fe16b1a1786e33f82dc8671ca32dfe6ae6024eb # Parent 8c7f1afad064da0f2cc5442f76078b921fbd315b dirstate: use quicker matchfn() instead of match() everywhere matchfn does the same as match(), but a direct "link" diff -r 8c7f1afad064 -r 9fe16b1a1786 mercurial/dirstate.py --- a/mercurial/dirstate.py Tue May 19 15:10:45 2009 +0200 +++ b/mercurial/dirstate.py Thu May 14 19:47:52 2009 +0200 @@ -533,7 +533,7 @@ results[nf] = None # step 3: report unseen items in the dmap hash - visit = sorted([f for f in dmap if f not in results and match(f)]) + visit = sorted([f for f in dmap if f not in results and matchfn(f)]) for nf, st in zip(visit, util.statfiles([join(i) for i in visit])): if not st is None and not getkind(st.st_mode) in (regkind, lnkkind): st = None