Show More
@@ -153,8 +153,7 b' def match(root, cwd, patterns, include=N' | |||
|
153 | 153 | listsubrepos=listsubrepos, badfn=badfn) |
|
154 | 154 | else: |
|
155 | 155 | # It's a little strange that no patterns means to match everything. |
|
156 |
# Consider changing this to match nothing (probably |
|
|
157 | # "nevermatcher"). | |
|
156 | # Consider changing this to match nothing (probably using nevermatcher). | |
|
158 | 157 | m = alwaysmatcher(root, cwd, badfn) |
|
159 | 158 | |
|
160 | 159 | if include: |
@@ -345,18 +344,8 b' class alwaysmatcher(basematcher):' | |||
|
345 | 344 | class nevermatcher(basematcher): |
|
346 | 345 | '''Matches nothing.''' |
|
347 | 346 | |
|
348 |
def __init__(self, root, cwd, badfn=None |
|
|
349 |
super(nevermatcher, self).__init__(root, cwd, badfn |
|
|
350 | relativeuipath=relativeuipath) | |
|
351 | ||
|
352 | def always(self): | |
|
353 | return False | |
|
354 | ||
|
355 | def matchfn(self, f): | |
|
356 | return False | |
|
357 | ||
|
358 | def visitdir(self, dir): | |
|
359 | return False | |
|
347 | def __init__(self, root, cwd, badfn=None): | |
|
348 | super(nevermatcher, self).__init__(root, cwd, badfn) | |
|
360 | 349 | |
|
361 | 350 | def __repr__(self): |
|
362 | 351 | return '<nevermatcher>' |
General Comments 0
You need to be logged in to leave comments.
Login now