[PATCH 05 of 10 main-line-of-work (some two digits more patches to go)] test: use bundle2 for exchange in test-largefile

Pierre-Yves David pierre-yves.david at ens-lyon.org
Fri May 29 11:53:06 CDT 2015


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at fb.com>
# Date 1432726443 25200
#      Wed May 27 04:34:03 2015 -0700
# Node ID 90c659b2fd3b7d2a451dea7a84af91e2988c6787
# Parent  008b340af101b1ad9252369d3b5476b4c48c7d33
test: use bundle2 for exchange in test-largefile

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.

It also lead to reordering of output because the exchange scheduling is a bit
different.

diff --git a/tests/test-largefiles.t b/tests/test-largefiles.t
--- a/tests/test-largefiles.t
+++ b/tests/test-largefiles.t
@@ -17,10 +17,14 @@ It contains all the testing of the basic
   > minsize=2
   > patterns=glob:**.dat
   > usercache=${USERCACHE}
   > [hooks]
   > precommit=sh -c "echo \\"Invoking status precommit hook\\"; hg status"
+  > [experimental]
+  > # drop me once bundle2 is the default,
+  > # added to get test change early.
+  > bundle2-exp = True
   > EOF
 
 Create the repo with a couple of revisions of both large and normal
 files.
 Test status and dirstate of largefiles and that summary output is correct.
@@ -1096,22 +1100,22 @@ redo pull with --lfrev and check it pull
   $ hg pull -v --lfrev 'heads(pulled())+min(pulled())'
   pulling from $TESTTMP/a (glob)
   searching for changes
   all local heads known remotely
   6 changesets found
+  uncompressed size of bundle content:
+      1333 (changelog)
+      1599 (manifests)
+       254  .hglf/large1
+       564  .hglf/large3
+       572  .hglf/sub/large4
+       182  .hglf/sub2/large6
+       182  .hglf/sub2/large7
+       212  normal1
+       457  normal3
+       465  sub/normal4
   adding changesets
-  uncompressed size of bundle content:
-      1213 (changelog)
-      1479 (manifests)
-       234  .hglf/large1
-       504  .hglf/large3
-       512  .hglf/sub/large4
-       162  .hglf/sub2/large6
-       162  .hglf/sub2/large7
-       192  normal1
-       397  normal3
-       405  sub/normal4
   adding manifests
   adding file changes
   added 6 changesets with 16 changes to 8 files
   calling hook changegroup.lfiles: hgext.largefiles.reposetup.checkrequireslfiles
   (run 'hg update' to get a working copy)


More information about the Mercurial-devel mailing list