Commit Graph

2 Commits

Author SHA1 Message Date
Mark Thomas
4bce5b2bbc treedirstate: prevent interference with other dirstate implementations
To avoid problems when other dirstate implementations are in use (sqldirstate
or eden), prevent upgrade of repos with those implementations active to
treedirstate.

Automatic upgrades are silently prevented.  Attempts to manually upgrade fail
with an explanatory message.

Differential Revision: https://phab.mercurial-scm.org/D1528
2017-11-28 04:51:38 -08:00
Mark Thomas
33855b35cc treedirstate: add integration tests
Copy the dirstate tests from core Mercurial, but run them with treedirstate
instead of the default dirstate map.

Add an extra test that covers scenarios specific to treedirstate.

Differential Revision: https://phab.mercurial-scm.org/D1490
2017-11-28 04:51:38 -08:00