##// END OF EJS Templates
match: make matchfn a method on the class...
Martin von Zweigbergk -
r32463:43e09184 default
parent child Browse files
Show More
@@ -209,7 +209,6 b' class basematcher(object):'
209 209 self._cwd = cwd
210 210 if badfn is not None:
211 211 self.bad = badfn
212 self.matchfn = lambda f: False
213 212
214 213 def __call__(self, fn):
215 214 return self.matchfn(fn)
@@ -266,6 +265,9 b' class basematcher(object):'
266 265 '''Returns True if f is in .files().'''
267 266 return f in self._fileset
268 267
268 def matchfn(self, f):
269 return False
270
269 271 def visitdir(self, dir):
270 272 '''Decides whether a directory should be visited based on whether it
271 273 has potential matches in it or one of its subdirectories. This is
General Comments 0
You need to be logged in to leave comments. Login now