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

login
register
mail settings
Submitter Pierre-Yves David
Date May 29, 2015, 4:53 p.m.
Message ID <d6a2c4a89cce00f06c1b.1432918391@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/9370/
State Accepted
Headers show

Comments

Pierre-Yves David - May 29, 2015, 4:53 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@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.

Patch

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