Patchwork [07,of,10,main-line-of-work,(some,two,digits,more,patches,to,go)] test: explicitly test wire protocol discovery with bundle1 and bundle2

login
register
mail settings
Submitter Pierre-Yves David
Date May 29, 2015, 4:53 p.m.
Message ID <82817d935addb59d7afa.1432918388@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/9367/
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 1432733734 25200
#      Wed May 27 06:35:34 2015 -0700
# Node ID 82817d935addb59d7afa42c444e53d6edcc69db4
# Parent  c1ae210c4f9f30bfd0f1f7fa6f18271f9fd10f71
test: explicitly test wire protocol discovery with bundle1 and bundle2

We want to make sure the behavior is similar in both cases.

Patch

diff --git a/tests/test-phases-exchange.t b/tests/test-phases-exchange.t
--- a/tests/test-phases-exchange.t
+++ b/tests/test-phases-exchange.t
@@ -1046,11 +1046,20 @@  same over the wire
   $ cd ../beta
   $ hg serve -p $HGPORT -d --pid-file=../beta.pid -E ../beta-error.log
   $ cat ../beta.pid >> $DAEMON_PIDS
   $ cd ../gamma
 
-  $ hg pull http://localhost:$HGPORT/
+  $ hg pull http://localhost:$HGPORT/ --config experimental.bundle2-exp=True
+  pulling from http://localhost:$HGPORT/
+  searching for changes
+  no changes found
+  $ hg phase f54f1bb90ff3
+  2: draft
+
+enforce bundle1
+
+  $ hg pull http://localhost:$HGPORT/ --config experimental.bundle2-exp=False
   pulling from http://localhost:$HGPORT/
   searching for changes
   no changes found
   $ hg phase f54f1bb90ff3
   2: draft