test: enable sparse-revlog for test-wireproto-caching.t
authorBoris Feld <boris.feld@octobus.net>
Mon, 12 Nov 2018 01:18:45 +0100
changeset 53680 cebaaa38f8fd
parent 53679 37cc627c5959
child 53681 e64a28e2a1f2
push id1079
push usergszorc@mozilla.com
push dateMon, 10 Dec 2018 19:44:59 +0000
test: enable sparse-revlog for test-wireproto-caching.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/D5341
tests/test-wireproto-caching.t
--- a/tests/test-wireproto-caching.t
+++ b/tests/test-wireproto-caching.t
@@ -1,8 +1,14 @@
+TRANSITIONAL CONFIG
+  $ cat << EOF >> $HGRCPATH
+  > [format]
+  > sparse-revlog = yes
+  > EOF
+
   $ . $TESTDIR/wireprotohelpers.sh
   $ cat >> $HGRCPATH << EOF
   > [extensions]
   > blackbox =
   > [blackbox]
   > track = simplecache
   > EOF
   $ hg init server
@@ -427,17 +433,18 @@ A non-cacheable command does not instant
         b'application/mercurial-exp-framing-0006'
       ],
       b'pathfilterprefixes': set([
         b'path:',
         b'rootfilesin:'
       ]),
       b'rawrepoformats': [
         b'generaldelta',
-        b'revlogv1'
+        b'revlogv1',
+        b'sparserevlog'
       ]
     }
   ]
 
   $ test -f .hg/blackbox.log
   [1]
 
 An error is not cached