[PATCH 10 of 10 main-line-of-work (some two digits more patches to go)] test: lock test-unbundlehash to bundle1 usage

Pierre-Yves David pierre-yves.david at ens-lyon.org
Fri May 29 11:53:11 CDT 2015


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1432726764 25200
#      Wed May 27 04:39:24 2015 -0700
# Node ID d6a2c4a89cce00f06c1b190a9612ff02ada9942e
# Parent  fb567107cbd709023e3478c87c6012dafd27bfbb
test: lock test-unbundlehash to bundle1 usage

It is testing a bundle1 specific behavior. Bundle2 have its own way there. See
inline comment for details.

diff --git a/tests/test-unbundlehash.t b/tests/test-unbundlehash.t
--- a/tests/test-unbundlehash.t
+++ b/tests/test-unbundlehash.t
@@ -1,9 +1,17 @@
 #require killdaemons
 
 Test wire protocol unbundle with hashed heads (capability: unbundlehash)
 
+  $ cat << EOF >> $HGRCPATH
+  > [experimental]
+  > # This tests is intended for bundle1 only.
+  > # bundle2 is carrying the head information inside the bundle itself and
+  > # always use 'force' as the heads value.
+  > bundle2-exp = False
+  > EOF
+
 Create a remote repository.
 
   $ hg init remote
   $ hg serve -R remote --config web.push_ssl=False --config web.allow_push=* -p $HGPORT -d --pid-file=hg1.pid -E error.log -A access.log
   $ cat hg1.pid >> $DAEMON_PIDS


More information about the Mercurial-devel mailing list