This is an archive of the discontinued Mercurial Phabricator instance.

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

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

Details

Summary

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

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Automatic diff as part of commit; lint not applicable.
Unit
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.