test: preemptively disable sparse-revlog for some of test-upgrade-repo
authorBoris Feld <boris.feld@octobus.net>
Mon, 12 Nov 2018 01:22:30 +0100
changeset 53683 e8cd688b2eb1
parent 53682 aeac89e78def
child 53684 3764330f76a6
push id1079
push usergszorc@mozilla.com
push dateMon, 10 Dec 2018 19:44:59 +0000
test: preemptively disable sparse-revlog for some of test-upgrade-repo Some part of this test assumes sparse-revlog is off. We enforce it explicitly. Differential Revision: https://phab.mercurial-scm.org/D5344
tests/test-upgrade-repo.t
--- a/tests/test-upgrade-repo.t
+++ b/tests/test-upgrade-repo.t
@@ -325,17 +325,17 @@ Upgrading a repository to generaldelta w
   $ touch f0
   $ hg -q commit -A -m initial
   $ touch f1
   $ hg -q commit -A -m 'add f1'
   $ hg -q up -r 0
   $ touch f2
   $ hg -q commit -A -m 'add f2'
 
-  $ hg debugupgraderepo --run
+  $ hg debugupgraderepo --run --config format.sparse-revlog=false
   upgrade will perform the following actions:
   
   requirements
      preserved: dotencode, fncache, revlogv1, store
      added: generaldelta
   
   generaldelta
      repository storage will be able to create optimal deltas; new repository data will be smaller and read times should decrease; interacting with other repositories using this storage model should require less network and CPU resources, making "hg push" and "hg pull" faster
@@ -715,17 +715,17 @@ repository config is taken in account
   $ cat << EOF >> $HGRCPATH
   > [format]
   > maxchainlen = 9001
   > EOF
 
 Check upgrading a sparse-revlog repository
 ---------------------------------------
 
-  $ hg init sparserevlogrepo
+  $ hg init sparserevlogrepo --config format.sparse-revlog=no
   $ cd sparserevlogrepo
   $ touch foo
   $ hg add foo
   $ hg -q commit -m "foo"
   $ cat .hg/requires
   dotencode
   fncache
   generaldelta