Patchwork [06,of,10,main-line-of-work,(some,two,digits,more,patches,to,go)] test: use bundle2 for exchange in test-push-warn

login
register
mail settings
Submitter Pierre-Yves David
Date May 29, 2015, 4:53 p.m.
Message ID <c1ae210c4f9f30bfd0f1.1432918387@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/9366/
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 1432733876 25200
#      Wed May 27 06:37:56 2015 -0700
# Node ID c1ae210c4f9f30bfd0f1f7fa6f18271f9fd10f71
# Parent  90c659b2fd3b7d2a451dea7a84af91e2988c6787
test: use bundle2 for exchange in test-push-warn

Using bundle2 for exchange unlock the usage of changegroup version 2. This
version of the changegroup held more information (delta base) that result in a
small increase in content size (20 bytes).

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
@@ -1,7 +1,14 @@ 
 #require killdaemons
 
+  $ cat << EOF >> $HGRCPATH
+  > [experimental]
+  > # drop me once bundle2 is the default,
+  > # added to get test change early.
+  > bundle2-exp = True
+  > EOF
+
   $ hgph() { hg log -G --template "{rev} {phase} {desc} - {node|short}\n" $*; }
 
   $ mkcommit() {
   >    echo "$1" > "$1"
   >    hg add "$1"
@@ -763,13 +770,13 @@  Bare push with next changeset and common
   $ hg push -fv ../alpha
   pushing to ../alpha
   searching for changes
   1 changesets found
   uncompressed size of bundle content:
-       172 (changelog)
-       145 (manifests)
-       111  a-H
+       192 (changelog)
+       165 (manifests)
+       131  a-H
   adding changesets
   adding manifests
   adding file changes
   added 1 changesets with 1 changes to 1 files (+1 heads)
   $ hgph