[PATCH 3 of 4 main-line] test: enforce bundle1 in 'test-push-cgi.t'

Pierre-Yves David pierre-yves.david at ens-lyon.org
Wed Nov 4 08:50:27 CST 2015


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1445347676 -7200
#      Tue Oct 20 15:27:56 2015 +0200
# Node ID 5b36c9016c6303d1d5bbeeb45984d5f421ad77da
# Parent  ede1aaf47b922fa872b7fd32680f0aa014c13ac7
# EXP-Topic generaldelta
# Available At http://hg.netv6.net/marmoute-wip/mercurial/
#              hg pull http://hg.netv6.net/marmoute-wip/mercurial/ -r 5b36c9016c63
test: enforce bundle1 in 'test-push-cgi.t'

This test is checking bundle1 application, therefore we have to enforce the generated
bundle to be a bundle1.

diff --git a/tests/test-push-cgi.t b/tests/test-push-cgi.t
--- a/tests/test-push-cgi.t
+++ b/tests/test-push-cgi.t
@@ -29,11 +29,11 @@ create hgweb invocation script
 test preparation
 
   $ . "$TESTDIR/cgienv"
   $ REQUEST_METHOD="POST"; export REQUEST_METHOD
   $ CONTENT_TYPE="application/octet-stream"; export CONTENT_TYPE
-  $ hg bundle --all bundle.hg
+  $ hg bundle --type v1 --all bundle.hg
   1 changesets found
   $ CONTENT_LENGTH=279; export CONTENT_LENGTH;
 
 expect failure because heads doesn't match (formerly known as 'unsynced changes')
 


More information about the Mercurial-devel mailing list