test: enable sparse-revlog for test-init.t
authorBoris Feld <boris.feld@octobus.net>
Mon, 12 Nov 2018 01:06:10 +0100
changeset 53660 57e4150fb15bd34146916e1a34c447889989b415
parent 53659 4062ba2deb4eaaefcd4747dfa53fcadcd771b9ea
child 53661 ed8e4748b9da532081441d8511ec93f48afcf9f1
push id1079
push usergszorc@mozilla.com
push dateMon, 10 Dec 2018 19:44:59 +0000
test: enable sparse-revlog for test-init.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/D5321
tests/test-init.t
--- a/tests/test-init.t
+++ b/tests/test-init.t
@@ -1,8 +1,14 @@
+TRANSITIONAL CONFIG
+  $ cat << EOF >> $HGRCPATH
+  > [format]
+  > sparse-revlog = yes
+  > EOF
+
 This test tries to exercise the ssh functionality with a dummy script
 
   $ checknewrepo()
   > {
   >    name=$1
   >    if [ -d "$name"/.hg/store ]; then
   >    echo store created
   >    fi
@@ -17,16 +23,17 @@ creating 'local'
   $ hg init local
   $ checknewrepo local
   store created
   00changelog.i created
   dotencode
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
   testonly-simplestore (reposimplestore !)
   $ echo this > local/foo
   $ hg ci --cwd local -A -m "init"
   adding foo
 
 test custom revlog chunk cache sizes
 
@@ -55,43 +62,46 @@ test custom revlog chunk cache sizes
 
 creating repo with format.usestore=false
 
   $ hg --config format.usestore=false init old
   $ checknewrepo old
   generaldelta
   revlogv1
   testonly-simplestore (reposimplestore !)
+  sparserevlog
 
 creating repo with format.usefncache=false
 
   $ hg --config format.usefncache=false init old2
   $ checknewrepo old2
   store created
   00changelog.i created
   generaldelta
   revlogv1
+  sparserevlog
   store
   testonly-simplestore (reposimplestore !)
 
 creating repo with format.dotencode=false
 
   $ hg --config format.dotencode=false init old3
   $ checknewrepo old3
   store created
   00changelog.i created
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
   testonly-simplestore (reposimplestore !)
 
 creating repo with format.dotencode=false
 
-  $ hg --config format.generaldelta=false --config format.usegeneraldelta=false init old4
+  $ hg --config format.generaldelta=false --config format.usegeneraldelta=false --config format.sparse-revlog=no init old4
   $ checknewrepo old4
   store created
   00changelog.i created
   dotencode
   fncache
   revlogv1
   store
   testonly-simplestore (reposimplestore !)
@@ -205,16 +215,17 @@ creating 'local/sub/repo'
   $ hg init local/sub/repo
   $ checknewrepo local/sub/repo
   store created
   00changelog.i created
   dotencode
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
   testonly-simplestore (reposimplestore !)
 
 prepare test of init of url configured from paths
 
   $ echo '[paths]' >> $HGRCPATH
   $ echo "somewhere = `pwd`/url from paths" >> $HGRCPATH
   $ echo "elsewhere = `pwd`/another paths url" >> $HGRCPATH
@@ -224,31 +235,33 @@ init should (for consistency with clone)
   $ hg init somewhere
   $ checknewrepo "url from paths"
   store created
   00changelog.i created
   dotencode
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
   testonly-simplestore (reposimplestore !)
 
 verify that clone also expand urls
 
   $ hg clone somewhere elsewhere
   updating to branch default
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ checknewrepo "another paths url"
   store created
   00changelog.i created
   dotencode
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
   testonly-simplestore (reposimplestore !)
 
 clone bookmarks
 
   $ hg -R local bookmark test
   $ hg -R local bookmarks
    * test                      0:08b9e9f63b32