test: enable sparse-revlog for test-remotefilelog-clone-tree.t
authorBoris Feld <boris.feld@octobus.net>
Mon, 12 Nov 2018 01:14:22 +0100
changeset 53669 116cadf4f3e887ac532481fbc796ae4fafff0bde
parent 53668 2fd790468e4360109b5880905ee09591c2d02116
child 53670 b2b8afd66f780cd1171743ccd329df3b319adb16
push id1079
push usergszorc@mozilla.com
push dateMon, 10 Dec 2018 19:44:59 +0000
test: enable sparse-revlog for test-remotefilelog-clone-tree.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/D5330
tests/test-remotefilelog-clone-tree.t
--- a/tests/test-remotefilelog-clone-tree.t
+++ b/tests/test-remotefilelog-clone-tree.t
@@ -1,8 +1,14 @@
+TRANSITIONAL CONFIG
+  $ cat << EOF >> $HGRCPATH
+  > [format]
+  > sparse-revlog = yes
+  > EOF
+
 #require no-windows
 
   $ . "$TESTDIR/remotefilelog-library.sh"
 
   $ hg init master
   $ cd master
   $ echo treemanifest >> .hg/requires
   $ cat >> .hg/hgrc <<EOF
@@ -26,16 +32,17 @@
   no changes found
   $ cd shallow
   $ cat .hg/requires
   dotencode
   exp-remotefilelog-repo-req-1
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
   treemanifest
   $ find .hg/store/meta | sort
   .hg/store/meta
   .hg/store/meta/_a
   .hg/store/meta/_a/00manifest.i
   .hg/store/meta/_a/_b
   .hg/store/meta/_a/_b/00manifest.i
@@ -66,16 +73,17 @@
   no changes found
   $ cd shallow2
   $ cat .hg/requires
   dotencode
   exp-remotefilelog-repo-req-1
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
   treemanifest
   $ ls .hg/store/data
   ca31988f085bfb945cb8115b78fabdee40f741aa
 
   $ hg update
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
@@ -107,10 +115,11 @@
 
   $ ls shallow3/.hg/store/data
   $ cat shallow3/.hg/requires
   dotencode
   exp-remotefilelog-repo-req-1
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
   treemanifest