##// 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 self._cwd = cwd
209 self._cwd = cwd
210 if badfn is not None:
210 if badfn is not None:
211 self.bad = badfn
211 self.bad = badfn
212 self.matchfn = lambda f: False
213
212
214 def __call__(self, fn):
213 def __call__(self, fn):
215 return self.matchfn(fn)
214 return self.matchfn(fn)
@@ -266,6 +265,9 b' class basematcher(object):'
266 '''Returns True if f is in .files().'''
265 '''Returns True if f is in .files().'''
267 return f in self._fileset
266 return f in self._fileset
268
267
268 def matchfn(self, f):
269 return False
270
269 def visitdir(self, dir):
271 def visitdir(self, dir):
270 '''Decides whether a directory should be visited based on whether it
272 '''Decides whether a directory should be visited based on whether it
271 has potential matches in it or one of its subdirectories. This is
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