Patchwork [1,of,2] test: enforce v1 type in 'test-bundle2-format.t'

login
register
mail settings
Submitter Pierre-Yves David
Date Oct. 18, 2015, 2:25 p.m.
Message ID <c8b2db1d9fe39a11ab84.1445178312@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/11174/
State Accepted
Headers show

Comments

Pierre-Yves David - Oct. 18, 2015, 2:25 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@fb.com>
# Date 1444960294 -3600
#      Fri Oct 16 02:51:34 2015 +0100
# Node ID c8b2db1d9fe39a11ab8471b5f814ad92230fcad1
# Parent  50fc80e46786301bcf775649ef8f6d121f62fa5c
# EXP-Topic generaldelta
# Available At http://hg.netv6.net/marmoute-wip/mercurial/
#              hg pull http://hg.netv6.net/marmoute-wip/mercurial/ -r c8b2db1d9fe3
test: enforce v1 type in 'test-bundle2-format.t'

This bundle command is meant to generate a bundle1, we enforce that to avoid
test's misbehavior when moving to general-delta by default.

Patch

diff --git a/tests/test-bundle2-format.t b/tests/test-bundle2-format.t
--- a/tests/test-bundle2-format.t
+++ b/tests/test-bundle2-format.t
@@ -283,11 +283,11 @@  Test unbundling
   options count: 0
   parts count:   0
 
 Test old style bundle are detected and refused
 
-  $ hg bundle --all ../bundle.hg
+  $ hg bundle --all --type v1 ../bundle.hg
   1 changesets found
   $ hg statbundle2 < ../bundle.hg
   abort: unknown bundle version 10
   [255]