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