dirstate: use quicker matchfn() instead of match() everywhere
authorSimon Heimberg <simohe@besonet.ch>
Thu, 14 May 2009 19:47:52 +0200
changeset 8521 9fe16b1a1786
parent 8520 8c7f1afad064
child 8522 39fd67552297
dirstate: use quicker matchfn() instead of match() everywhere matchfn does the same as match(), but a direct "link"
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