This is an archive of the discontinued Mercurial Phabricator instance.

match: override visitdir() in nevermatcher to return False
ClosedPublic

Authored by martinvonz on Jul 19 2017, 6:06 PM.

Details

Summary

When we changed basematcher.visitdir() in cf15c3cc304c (match: make
base matcher return True for visitdir, 2017-07-14), we forgot to add
an override in nevermatcher. This led to tests failing in narrowhg.

As Durham pointed out, it's high time to add unit tests for the
matcher, so this patch also adds a first unit test.

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

martinvonz created this revision.Jul 19 2017, 6:06 PM
martinvonz edited the summary of this revision. (Show Details)Jul 19 2017, 6:08 PM
durham accepted this revision.Jul 21 2017, 6:19 AM
durham added a subscriber: durham.

Nice!

durin42 accepted this revision.Jul 25 2017, 10:55 AM
durin42 added a subscriber: durin42.

Seems fine for stable. Queued.

This revision is now accepted and ready to land.Jul 25 2017, 10:55 AM
This revision was automatically updated to reflect the committed changes.