##// END OF EJS Templates
match: make nevermatcher an exact matcher and a prefix matcher...
Martin von Zweigbergk -
r33378:adf95bfb default
parent child Browse files
Show More
@@ -347,6 +347,17 b' class nevermatcher(basematcher):'
347 def __init__(self, root, cwd, badfn=None):
347 def __init__(self, root, cwd, badfn=None):
348 super(nevermatcher, self).__init__(root, cwd, badfn)
348 super(nevermatcher, self).__init__(root, cwd, badfn)
349
349
350 # It's a little weird to say that the nevermatcher is an exact matcher
351 # or a prefix matcher, but it seems to make sense to let callers take
352 # fast paths based on either. There will be no exact matches, nor any
353 # prefixes (files() returns []), so fast paths iterating over them should
354 # be efficient (and correct).
355 def isexact(self):
356 return True
357
358 def prefix(self):
359 return True
360
350 def __repr__(self):
361 def __repr__(self):
351 return '<nevermatcher>'
362 return '<nevermatcher>'
352
363
General Comments 0
You need to be logged in to leave comments. Login now