HomePhabricator

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

Authored by simpkins.

Description

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

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.

Reviewers: #fbhgext, mbthomas

Reviewed By: #fbhgext, mbthomas

Differential Revision: https://phab.mercurial-scm.org/D1022

Details

Committed
simpkinsOct 12 2017, 5:08 PM
Reviewer
Restricted Project
Differential Revision
D1022: sparse: add a test where sparse gets loaded in an non-sparse repository
Parents
rFBHGX488692a62115: tests: fix last patch
Branches
Unknown
Tags
Unknown