Patchwork [04,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 <008b340af101b1ad9252.1432918385@marginatus.alto.octopoid.net>
Download mbox | patch
Permalink /patch/9364/
State Superseded
Commit d20a675774d84db1deca4d0b1f17002caa8678fc
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 1432726240 25200
#      Wed May 27 04:30:40 2015 -0700
# Node ID 008b340af101b1ad9252369d3b5476b4c48c7d33
# Parent  d454cc072d583c2d1db481c846131cba70f35bef
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 x 2 changes).

Patch

diff --git a/tests/test-push-warn.t b/tests/test-push-warn.t
--- a/tests/test-push-warn.t
+++ b/tests/test-push-warn.t
@@ -1,5 +1,11 @@ 
+  $ cat << EOF >> $HGRCPATH
+  > [experimental]
+  > # drop me once bundle2 is the default,
+  > # added to get test change early.
+  > bundle2-exp = True
+  > EOF
   $ hg init a
   $ cd a
   $ echo foo > t1
   $ hg add t1
   $ hg commit -m "1"
@@ -148,13 +154,13 @@  Specifying a revset that evaluates to nu
   $ hg push -v -f -r 3 -r 4 ../c
   pushing to ../c
   searching for changes
   2 changesets found
   uncompressed size of bundle content:
-       308 (changelog)
-       286 (manifests)
-       213  foo
+       348 (changelog)
+       326 (manifests)
+       253  foo
   adding changesets
   adding manifests
   adding file changes
   added 2 changesets with 2 changes to 1 files (+2 heads)