Patchwork [4,of,5,mainline] test: enforce non-generaldelta base repository in 'test-generaldelta'

login
register
mail settings
Submitter Pierre-Yves David
Date Nov. 12, 2015, 7:29 p.m.
Message ID <5453a87fe45e9c625651.1447356580@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/11380/
State Accepted
Commit f43689badeff88ee0b2d6115f466add27a10122e
Headers show

Comments

Pierre-Yves David - Nov. 12, 2015, 7:29 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1446922391 18000
#      Sat Nov 07 13:53:11 2015 -0500
# Node ID 5453a87fe45e9c625651cbf00d12064cf349fd56
# Parent  86bb07c82ec6fd5e7db4c0ff556bb56d0007a7fb
# EXP-Topic generaldelta
# Available At http://hg.netv6.net/marmoute-wip/mercurial/
#              hg pull http://hg.netv6.net/marmoute-wip/mercurial/ -r 5453a87fe45e
test: enforce non-generaldelta base repository in 'test-generaldelta'

This test check the difference between various configuration we have to pin the
type of some repositories to ensure the test is still correct when we change the
default.

Patch

diff --git a/tests/test-generaldelta.t b/tests/test-generaldelta.t
--- a/tests/test-generaldelta.t
+++ b/tests/test-generaldelta.t
@@ -1,11 +1,11 @@ 
 Check whether size of generaldelta revlog is not bigger than its
 regular equivalent. Test would fail if generaldelta was naive
 implementation of parentdelta: third manifest revision would be fully
 inserted due to big distance from its paren revision (zero).
 
-  $ hg init repo
+  $ hg init repo --config format.generaldelta=no --config format.usegeneraldelta=no
   $ cd repo
   $ echo foo > foo
   $ echo bar > bar
   $ hg commit -q -Am boo
   $ hg clone --pull . ../gdrepo -q --config format.generaldelta=yes
@@ -60,11 +60,11 @@  commit.
   | o  1 f00c xy
   |/
   o  0 3903 a
   
   $ cd ..
-  $ hg init client --config format.generaldelta=false
+  $ hg init client --config format.generaldelta=false --config format.usegeneraldelta=false
   $ cd client
   $ hg pull -q ../server -r 4
   $ hg debugindex x
      rev    offset  length   base linkrev nodeid       p1           p2
        0         0       3      0       1 1406e7411862 000000000000 000000000000