test: enable sparse-revlog for test-remotefilelog-clone.t
authorBoris Feld <boris.feld@octobus.net>
Wed, 28 Nov 2018 20:00:57 +0100
changeset 53668 2fd790468e4360109b5880905ee09591c2d02116
parent 53667 7bdc975314904c77def8f2cbd5a894c1c20ee780
child 53669 116cadf4f3e887ac532481fbc796ae4fafff0bde
push id1079
push usergszorc@mozilla.com
push dateMon, 10 Dec 2018 19:44:59 +0000
test: enable sparse-revlog for test-remotefilelog-clone.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/D5329
tests/test-remotefilelog-clone.t
--- a/tests/test-remotefilelog-clone.t
+++ b/tests/test-remotefilelog-clone.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
   $ cat >> .hg/hgrc <<EOF
   > [remotefilelog]
@@ -23,16 +29,17 @@
   no changes found
   $ cd shallow
   $ cat .hg/requires
   dotencode
   exp-remotefilelog-repo-req-1
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
 
   $ hg update
   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over *s (glob)
 
   $ cat x
   x
@@ -56,16 +63,17 @@
   no changes found
   $ cd shallow2
   $ cat .hg/requires
   dotencode
   exp-remotefilelog-repo-req-1
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store
   $ ls .hg/store/data
   4a0a19218e082a343a1b17e5333409af9d98f0f5
 
   $ hg update
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
 
   $ cat x
@@ -104,9 +112,10 @@ check its contents separately.
 
   $ ls shallow3/.hg/store/data
   $ cat shallow3/.hg/requires
   dotencode
   exp-remotefilelog-repo-req-1
   fncache
   generaldelta
   revlogv1
+  sparserevlog
   store