[PATCH 1 of 3] test: copy test-push-http.t to testpush-http-bundle1.t

Pierre-Yves David pierre-yves.david at ens-lyon.org
Sun May 31 23:48:37 CDT 2015


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1432756491 25200
#      Wed May 27 12:54:51 2015 -0700
# Node ID f12d6f2ad4e45c66a93d95980ab52f8e5ed8dfde
# Parent  e41986932696560056e1d4d1a8f90c30da4904de
test: copy test-push-http.t to testpush-http-bundle1.t

We want to keep both code path tested. The test is a bit too extensive to
simply introduce dual testing in it so we make a copy for each protocol
version.

diff --git a/tests/test-push-http.t b/tests/test-push-http-bundle1.t
copy from tests/test-push-http.t
copy to tests/test-push-http-bundle1.t
--- a/tests/test-push-http.t
+++ b/tests/test-push-http-bundle1.t
@@ -1,7 +1,15 @@
 #require killdaemons
 
+This test check behavior related to bundle1 that changed or are likely to change with bundle2. feel free to factorise any part of the test for which it is false.
+
+  $ cat << EOF >> $HGRCPATH
+  > [experimental]
+  > # This test is dedicated to interaction through old bundle
+  > bundle2-exp = False
+  > EOF
+
   $ hg init test
   $ cd test
   $ echo a > a
   $ hg ci -Ama
   adding a


More information about the Mercurial-devel mailing list