Mercurial > hg
diff tests/test-sidedata.t @ 43134:75ad8af9c95e
upgrade: allow upgrade to repository using sidedata
Repository can now be migrated to support sidedata. More requirements and
migration will be needed to actual side-data usage. This is a step in that
direction.
To test the feature, we leverage the test extension. It make sure the `update`
part of the side-data migration actually works.
Differential Revision: https://phab.mercurial-scm.org/D6942
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 06 Oct 2019 23:36:51 -0400 |
parents | 559ac8411f12 |
children | 6e3dc1eff5c7 |
line wrap: on
line diff
--- a/tests/test-sidedata.t Sun Oct 06 23:36:51 2019 -0400 +++ b/tests/test-sidedata.t Sun Oct 06 23:36:51 2019 -0400 @@ -45,8 +45,8 @@ Right now, sidedata has not upgrade support -Check that we cannot upgrade to sidedata ----------------------------------------- +Check that we can upgrade to sidedata +------------------------------------- $ hg init up-no-side-data --config format.use-side-data=no $ hg debugformat -v -R up-no-side-data @@ -69,9 +69,7 @@ plain-cl-delta: yes yes yes compression: zlib zlib zlib compression-level: default default default - $ hg debugupgraderepo -R up-no-side-data --config format.use-side-data=yes - abort: cannot upgrade repository; do not support adding requirement: exp-sidedata-flag - [255] + $ hg debugupgraderepo -R up-no-side-data --config format.use-side-data=yes > /dev/null Check that we cannot upgrade to sidedata ----------------------------------------