Page MenuHomePhabricator

sparse: add a test where sparse gets loaded in an non-sparse repository

Authored by simpkins on Oct 11 2017, 9:20 PM.



Add a test to make sure the sparse extension works with non-sparse
repositories. The share extension can cause the sparse extension to be loaded
even if the current working directory is not sparse.

Currently "hg diff" crashes in this scenario. After the changes in D788, it
now tries to run repo.sparsematch() without first checking to see if the
repository is actually a sparse repository.

Test Plan

Ran it.

Diff Detail

rFBHGX Facebook Mercurial Extensions
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

simpkins created this revision.Oct 11 2017, 9:20 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptOct 11 2017, 9:20 PM
mbthomas accepted this revision.Oct 12 2017, 7:39 AM
This revision is now accepted and ready to land.Oct 12 2017, 7:39 AM
This revision was automatically updated to reflect the committed changes.