This is an archive of the discontinued Mercurial Phabricator instance.

remotefilelog: fix bug in maybesparsematch returning alwaysmatcher
ClosedPublic

Authored by spectral on Dec 27 2018, 7:15 PM.

Details

Summary

The description of the method says that it should return None if sparse is not
used in this repository; since sparse.matcher() returns alwaysmatcher if sparse
is not enabled, I'm using that as the signal to return None here to preserve the
previous behavior.

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

spectral created this revision.Dec 27 2018, 7:15 PM
This revision was automatically updated to reflect the committed changes.