match: make base matcher return True for visitdir
authorDurham Goode <durham@fb.com>
Fri, 14 Jul 2017 10:57:36 -0700
changeset 33478 cf15c3cc304c
parent 33477 cc4632679cf9
child 33479 8b48dad66be4
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
mercurial/match.py
--- a/mercurial/match.py	Fri Jul 14 10:48:08 2017 -0700
+++ b/mercurial/match.py	Fri Jul 14 10:57:36 2017 -0700
@@ -305,7 +305,7 @@
         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 --