##// END OF EJS Templates
changelogv2: introduce a "changelogv2" feature...
changelogv2: introduce a "changelogv2" feature Right now, this means using revlogv2, but only for the changelog. We will have the format more unique in future changesets. Differential Revision: https://phab.mercurial-scm.org/D10660

File last commit:

r48037:6c84fc9c default
r48037:6c84fc9c default
Show More
test-sidedata.t
122 lines | 4.6 KiB | text/troff | Tads3Lexer
upgrade: detect the side-data format variants...
r43299 ==========================================================
Test file dedicated to checking side-data related behavior
==========================================================
sidedata: test we can successfully write sidedata...
r43308 Check data can be written/read from sidedata
============================================
$ cat << EOF >> $HGRCPATH
> [extensions]
> testsidedata=$TESTDIR/testlib/ext-sidedata.py
> EOF
test: no longer directly use the sidedata config and requirements...
r48001 $ hg init test-sidedata --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
sidedata: test we can successfully write sidedata...
r43308 $ cd test-sidedata
$ echo aaa > a
$ hg add a
$ hg commit -m a --traceback
$ echo aaa > b
$ hg add b
$ hg commit -m b
$ echo xxx >> a
$ hg commit -m aa
upgrade: detect the side-data format variants...
r43299
sidedata: add a debugsidedata command...
r43309 $ hg debugsidedata -c 0
2 sidedata entries
entry-0001 size 4
entry-0002 size 32
$ hg debugsidedata -c 1 -v
2 sidedata entries
entry-0001 size 4
'\x00\x00\x006'
entry-0002 size 32
'\x98\t\xf9\xc4v\xf0\xc5P\x90\xf7wRf\xe8\xe27e\xfc\xc1\x93\xa4\x96\xd0\x1d\x97\xaaG\x1d\xd7t\xfa\xde'
$ hg debugsidedata -m 2
2 sidedata entries
entry-0001 size 4
entry-0002 size 32
$ hg debugsidedata a 1
2 sidedata entries
entry-0001 size 4
entry-0002 size 32
upgrade: detect the side-data format variants...
r43299 Check upgrade behavior
======================
Right now, sidedata has not upgrade support
upgrade: allow upgrade to repository using sidedata...
r43404 Check that we can upgrade to sidedata
-------------------------------------
upgrade: detect the side-data format variants...
r43299
test: no longer directly use the sidedata config and requirements...
r48001 $ hg init up-no-side-data --config experimental.revlogv2=no
upgrade: detect the side-data format variants...
r43299 $ hg debugformat -v -R up-no-side-data
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo config default
fncache: yes yes yes
dotencode: yes yes yes
generaldelta: yes yes yes
Pulkit Goyal
share: move share safe functionality out of experimental...
r47052 share-safe: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 sparserevlog: yes yes yes
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap: no no no (no-rust !)
persistent-nodemap: yes yes no (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 copies-sdc: no no no
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 revlog-v2: no no no
changelogv2: introduce a "changelogv2" feature...
r48037 changelog-v2: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 plain-cl-delta: yes yes yes
revlog-compression: use zstd by default (if available)...
r47636 compression: zlib zlib zlib (no-zstd !)
compression: zstd zstd zstd (zstd !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 compression-level: default default default
test: no longer directly use the sidedata config and requirements...
r48001 $ hg debugformat -v -R up-no-side-data --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo config default
fncache: yes yes yes
dotencode: yes yes yes
generaldelta: yes yes yes
Pulkit Goyal
share: move share safe functionality out of experimental...
r47052 share-safe: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 sparserevlog: yes yes yes
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap: no no no (no-rust !)
persistent-nodemap: yes yes no (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 copies-sdc: no no no
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 revlog-v2: no yes no
changelogv2: introduce a "changelogv2" feature...
r48037 changelog-v2: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 plain-cl-delta: yes yes yes
revlog-compression: use zstd by default (if available)...
r47636 compression: zlib zlib zlib (no-zstd !)
compression: zstd zstd zstd (zstd !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 compression-level: default default default
test: no longer directly use the sidedata config and requirements...
r48001 $ hg debugupgraderepo -R up-no-side-data --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data > /dev/null
upgrade: detect the side-data format variants...
r43299
upgrade: allow for `sidedata` removal...
r43405 Check that we can downgrade from sidedata
-----------------------------------------
upgrade: detect the side-data format variants...
r43299
test: no longer directly use the sidedata config and requirements...
r48001 $ hg init up-side-data --config experimental.revlogv2=enable-unstable-format-and-corrupt-my-data
upgrade: detect the side-data format variants...
r43299 $ hg debugformat -v -R up-side-data
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo config default
fncache: yes yes yes
dotencode: yes yes yes
generaldelta: yes yes yes
Pulkit Goyal
share: move share safe functionality out of experimental...
r47052 share-safe: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 sparserevlog: yes yes yes
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap: no no no (no-rust !)
persistent-nodemap: yes yes no (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 copies-sdc: no no no
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 revlog-v2: yes no no
changelogv2: introduce a "changelogv2" feature...
r48037 changelog-v2: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 plain-cl-delta: yes yes yes
revlog-compression: use zstd by default (if available)...
r47636 compression: zlib zlib zlib (no-zstd !)
compression: zstd zstd zstd (zstd !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 compression-level: default default default
test: no longer directly use the sidedata config and requirements...
r48001 $ hg debugformat -v -R up-side-data --config experimental.revlogv2=no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 format-variant repo config default
fncache: yes yes yes
dotencode: yes yes yes
generaldelta: yes yes yes
Pulkit Goyal
share: move share safe functionality out of experimental...
r47052 share-safe: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 sparserevlog: yes yes yes
persistent-nodemap: enable the feature by default when using Rust...
r47646 persistent-nodemap: no no no (no-rust !)
persistent-nodemap: yes yes no (rust !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 copies-sdc: no no no
Raphaël Gomès
revlogv2: allow upgrading to v2...
r47439 revlog-v2: yes no no
changelogv2: introduce a "changelogv2" feature...
r48037 changelog-v2: no no no
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 plain-cl-delta: yes yes yes
revlog-compression: use zstd by default (if available)...
r47636 compression: zlib zlib zlib (no-zstd !)
compression: zstd zstd zstd (zstd !)
nodemap: teach `hg debugformat` about the persistent nodemap option...
r45303 compression-level: default default default
test: no longer directly use the sidedata config and requirements...
r48001 $ hg debugupgraderepo -R up-side-data --config experimental.revlogv2=no > /dev/null