test: enable sparse-revlog for test-repo-compengines.t
authorBoris Feld <boris.feld@octobus.net>
Mon, 12 Nov 2018 01:15:21 +0100
changeset 53671 4fe18205bbdbbba196cbf3f8102e21efd469837a
parent 53670 b2b8afd66f780cd1171743ccd329df3b319adb16
child 53672 27fa1d2bf484fc31c60f8208c268c82277ee2965
push id1079
push usergszorc@mozilla.com
push dateMon, 10 Dec 2018 19:44:59 +0000
test: enable sparse-revlog for test-repo-compengines.t We are about to enable sparse-revlog globally. To help with reviewing the tests change, we isolate them in individual changesets. Differential Revision: https://phab.mercurial-scm.org/D5332
tests/test-repo-compengines.t
--- a/tests/test-repo-compengines.t
+++ b/tests/test-repo-compengines.t
@@ -1,17 +1,24 @@
+TRANSITIONAL CONFIG
+  $ cat << EOF >> $HGRCPATH
+  > [format]
+  > sparse-revlog = yes
+  > EOF
+
 A new repository uses zlib storage, which doesn't need a requirement
 
   $ hg init default
   $ cd default
   $ cat .hg/requires
   dotencode
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
   testonly-simplestore (reposimplestore !)
 
   $ touch foo
   $ hg -q commit -A -m 'initial commit with a lot of repeated repeated repeated text to trigger compression'
   $ hg debugrevlog -c | grep 0x78
       0x78 (x)  :   1 (100.00%)
       0x78 (x)  : 110 (100.00%)
@@ -42,16 +49,17 @@ A requirement specifying an unknown comp
   $ hg --config experimental.format.compression=zstd init zstd
   $ cd zstd
   $ cat .hg/requires
   dotencode
   exp-compression-zstd
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
   testonly-simplestore (reposimplestore !)
 
   $ touch foo
   $ hg -q commit -A -m 'initial commit with a lot of repeated repeated repeated text'
 
   $ hg debugrevlog -c | grep 0x28
       0x28      :  1 (100.00%)
@@ -66,16 +74,17 @@ with that engine or a requirement
   $ touch bar
   $ hg --config experimental.format.compression=zstd -q commit -A -m 'add bar with a lot of repeated repeated repeated text'
 
   $ cat .hg/requires
   dotencode
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
   testonly-simplestore (reposimplestore !)
 
   $ hg debugrevlog -c | grep 0x78
       0x78 (x)  :   2 (100.00%)
       0x78 (x)  : 199 (100.00%)
 
 #endif