diff mercurial/match.py @ 6834:cbdfd08eabc9

dirstate.walk: speed up calling match function
author Matt Mackall <mpm@selenic.com>
date Tue, 22 Jul 2008 13:03:31 -0500
parents 98b6e6f0e49b
children 08e1baf924ca
line wrap: on
line diff
--- a/mercurial/match.py	Tue Jul 22 13:03:29 2008 -0500
+++ b/mercurial/match.py	Tue Jul 22 13:03:31 2008 -0500
@@ -6,10 +6,10 @@
         self._cwd = cwd
         self._files = files
         self._fmap = dict.fromkeys(files)
-        self._matchfn = mf
+        self.matchfn = mf
         self._anypats = ap
     def __call__(self, fn):
-        return self._matchfn(fn)
+        return self.matchfn(fn)
     def __iter__(self):
         for f in self._files:
             yield f