mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 15:57:43 +03:00
match: make base matcher return True for visitdir
If a matcher doesn't implement visitdir, we should be returning True so that tree traversals are not prematurely pruned. The old value of False would prevent tree traversals when using any matcher that didn't implement visitdir. Differential Revision: https://phab.mercurial-scm.org/D83
This commit is contained in:
parent
adc92f10c9
commit
d4313959ab
@ -305,7 +305,7 @@ class basematcher(object):
|
||||
This function's behavior is undefined if it has returned False for
|
||||
one of the dir's parent directories.
|
||||
'''
|
||||
return False
|
||||
return True
|
||||
|
||||
def always(self):
|
||||
'''Matcher will match everything and .files() will be empty --
|
||||
|
Loading…
Reference in New Issue
Block a user