( )⚙ D83 match: make base matcher return True for visitdir

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
Lint Skipped
Unit
Unit Tests Skipped

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.