[PATCH 1 of 4] dirstate: use quicker matchfn() istead of match() everywhere

Simon Heimberg simohe at besonet.ch
Tue May 19 02:26:50 CDT 2009


# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
# Date 1242323272 -7200
# Node ID 63713e57d10bdff50c59093459f434f2597ec3e7
# Parent  252232621165917755727729c7f0b9a1f1263668
dirstate: use quicker matchfn() istead of match() everywhere

matchfn does the same as match(), but a direct "link"

diff -r 252232621165 -r 63713e57d10b mercurial/dirstate.py
--- a/mercurial/dirstate.py	Die Mai 19 01:37:38 2009 +0200
+++ b/mercurial/dirstate.py	Don Mai 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


More information about the Mercurial-devel mailing list