changeset 33478:cf15c3cc304c

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
author Durham Goode <durham@fb.com>
date Fri, 14 Jul 2017 10:57:36 -0700
parents cc4632679cf9
children 8b48dad66be4
files mercurial/match.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 --