[PATCH 5 of 5 mainline] test: enforce generaldelta format with the right option

Pierre-Yves David pierre-yves.david at ens-lyon.org
Thu Nov 12 13:29:41 CST 2015


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1447325539 28800
#      Thu Nov 12 02:52:19 2015 -0800
# Node ID 621ee576df0ee187f032ae11bec8ae156673a1ea
# Parent  5453a87fe45e9c625651cbf00d12064cf349fd56
# EXP-Topic generaldelta
# Available At http://hg.netv6.net/marmoute-wip/mercurial/
#              hg pull http://hg.netv6.net/marmoute-wip/mercurial/ -r 621ee576df0e
test: enforce generaldelta format with the right option

The option that will become true by default is now 'usegeneraldelta' We have to
adjust the change made in b75fed55f6dc to actually achieve its goal.

diff --git a/tests/test-shelve.t b/tests/test-shelve.t
--- a/tests/test-shelve.t
+++ b/tests/test-shelve.t
@@ -969,11 +969,11 @@ shelve --patch and shelve --stat should 
 Shelve from general delta repo uses bundle2 on disk
 --------------------------------------------------
 
 no general delta
 
-  $ hg clone --pull repo bundle1 --config format.generaldelta=0
+  $ hg clone --pull repo bundle1 --config format.usegeneraldelta=0
   requesting all changes
   adding changesets
   adding manifests
   adding file changes
   added 5 changesets with 8 changes to 6 files
@@ -989,11 +989,11 @@ no general delta
   7e30d8ac6f23cfc84330fd7e698730374615d21a
   $ cd ..
 
 with general delta
 
-  $ hg clone --pull repo bundle2 --config format.generaldelta=1
+  $ hg clone --pull repo bundle2 --config format.usegeneraldelta=1
   requesting all changes
   adding changesets
   adding manifests
   adding file changes
   added 5 changesets with 8 changes to 6 files


More information about the Mercurial-devel mailing list