test: enable sparse-revlog for test-revlog-v2.t
authorBoris Feld <boris.feld@octobus.net>
Mon, 12 Nov 2018 01:15:37 +0100
changeset 53672 27fa1d2bf484fc31c60f8208c268c82277ee2965
parent 53671 4fe18205bbdbbba196cbf3f8102e21efd469837a
child 53673 74a519c8662577e80e088faf273a6f8aba29de1a
push id1079
push usergszorc@mozilla.com
push dateMon, 10 Dec 2018 19:44:59 +0000
test: enable sparse-revlog for test-revlog-v2.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/D5333
tests/test-revlog-v2.t
--- a/tests/test-revlog-v2.t
+++ b/tests/test-revlog-v2.t
@@ -1,8 +1,14 @@
+TRANSITIONAL CONFIG
+  $ cat << EOF >> $HGRCPATH
+  > [format]
+  > sparse-revlog = yes
+  > EOF
+
 #require reporevlogstore
 
 A repo with unknown revlogv2 requirement string cannot be opened
 
   $ hg init invalidreq
   $ cd invalidreq
   $ echo exp-revlogv2.unknown >> .hg/requires
   $ hg log
@@ -19,16 +25,17 @@ Can create and open repo with revlog v2 
   > EOF
 
   $ hg init empty-repo
   $ cd empty-repo
   $ cat .hg/requires
   dotencode
   exp-revlogv2.0
   fncache
+  sparserevlog
   store
 
   $ hg log
 
 Unknown flags to revlog are rejected
 
   >>> with open('.hg/store/00changelog.i', 'wb') as fh:
   ...     fh.write(b'\x00\x04\xde\xad') and None