Mercurial > public > mercurial-scm > hg-stable
diff tests/test-upgrade-repo.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 | 9cc55b743713 |
children | 6e3dc1eff5c7 |
line wrap: on
line diff
--- a/tests/test-upgrade-repo.t Sun Oct 06 23:36:51 2019 -0400 +++ b/tests/test-upgrade-repo.t Sun Oct 06 23:36:51 2019 -0400 @@ -1329,6 +1329,35 @@ sparserevlog store - $ cd .. +#endif + +Check upgrading to a side-data revlog +------------------------------------- + +upgrade -#endif + $ hg --config format.use-side-data=yes debugupgraderepo --run --no-backup --config "extensions.sidedata=$TESTDIR/testlib/ext-sidedata.py" >/dev/null + $ hg debugformat -v + format-variant repo config default + fncache: yes yes yes + dotencode: yes yes yes + generaldelta: yes yes yes + sparserevlog: yes yes yes + sidedata: yes no no + plain-cl-delta: yes yes yes + compression: zstd zstd zlib + compression-level: default default default + $ cat .hg/requires + dotencode + exp-sidedata-flag + fncache + generaldelta + revlog-compression-zstd + revlogv1 + sparserevlog + store + $ hg debugsidedata -c 0 + 2 sidedata entries + entry-0001 size 4 + entry-0002 size 32 +