test: lock test-unbundlehash to bundle1 usage
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 27 May 2015 04:39:24 -0700
changeset 25374 c2d691542d6a
parent 25373 9793e52279a1
child 25375 b08887e723a9
test: lock test-unbundlehash to bundle1 usage It is testing a bundle1 specific behavior. Bundle2 has its own way there. See inline comment for details.
tests/test-unbundlehash.t
--- a/tests/test-unbundlehash.t	Wed May 27 06:42:42 2015 -0700
+++ b/tests/test-unbundlehash.t	Wed May 27 04:39:24 2015 -0700
@@ -2,6 +2,14 @@
 
 Test wire protocol unbundle with hashed heads (capability: unbundlehash)
 
+  $ cat << EOF >> $HGRCPATH
+  > [experimental]
+  > # This tests is intended for bundle1 only.
+  > # bundle2 carries the head information inside the bundle itself and
+  > # always uses 'force' as the heads value.
+  > bundle2-exp = False
+  > EOF
+
 Create a remote repository.
 
   $ hg init remote