This is an archive of the discontinued Mercurial Phabricator instance.

narrow: move checking for narrow requirement into _narrowmatch()
ClosedPublic

Authored by martinvonz on Feb 28 2018, 3:56 PM.

Details

Summary

We want to move narrowmatch() and others into core, so we need to get
rid of the dependence on the "narrow_opts" from the closure in
narrowrepo.wraprepo(). We can simply check if the narrow requirement
is set. I think that seems like an improvement regardless of moving
narrowmatch().

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.Feb 28 2018, 3:56 PM
indygreg accepted this revision.Feb 28 2018, 9:04 PM
indygreg added a subscriber: indygreg.

Having the requirement imply the use of a narrow matcher seems OK to me. It is easy enough to change if we need something else.

This revision is now accepted and ready to land.Feb 28 2018, 9:04 PM
This revision was automatically updated to reflect the committed changes.