##// END OF EJS Templates
match: make 'always' and 'exact' functions, not classes...
Martin von Zweigbergk -
r23549:609ecde2 default
parent child Browse files
Show More
@@ -156,13 +156,11 b' class match(object):'
156 - optimization might be possible and necessary.'''
156 - optimization might be possible and necessary.'''
157 return self._always
157 return self._always
158
158
159 class exact(match):
159 def exact(root, cwd, files):
160 def __init__(self, root, cwd, files):
160 return match(root, cwd, files, exact=True)
161 match.__init__(self, root, cwd, files, exact=True)
162
161
163 class always(match):
162 def always(root, cwd):
164 def __init__(self, root, cwd):
163 return match(root, cwd, [])
165 match.__init__(self, root, cwd, [])
166
164
167 class narrowmatcher(match):
165 class narrowmatcher(match):
168 """Adapt a matcher to work on a subdirectory only.
166 """Adapt a matcher to work on a subdirectory only.
General Comments 0
You need to be logged in to leave comments. Login now