This is an archive of the discontinued Mercurial Phabricator instance.

match: make base matcher return True for visitdir
ClosedPublic

Authored by durham on Jul 14 2017, 1:57 PM.

Details

Summary

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.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

durham created this revision.Jul 14 2017, 1:57 PM
martinvonz accepted this revision.Jul 14 2017, 2:04 PM

Thanks. I had been thinking of making this change. I agree it's better to be slow but correct by default.

This revision is now accepted and ready to land.Jul 14 2017, 2:04 PM
This revision was automatically updated to reflect the committed changes.