Skip to content
Snippets Groups Projects
Anton Shestakov's avatar
Anton Shestakov authored
Support for bundle2 streaming clones has been shipped in Mercurial 4.5
(7eedbd5d4880), but was never activated by default. It's time to have more
people use it. The new format allows streaming clones to transport cache
(hooray for speed) and phaseroots (fixes phase-related issues).

Changes in tests:

bundle2 capabilities now have "stream=v2" (plus a '\n' as a separator) and
therefore take 14 bytes more: "%0Astream%3Dv2". Tip for tests that have data
encoded with CBOR: 0xd3 - 0xc5 = 14.

$USUAL_BUNDLE2_CAPS$ replaces $USUAL_BUNDLE2_CAPS_SERVER$, which is the same
thing, but without "stream=v2".

Since streaming clones now also transfer caches, the reported byte and file
counts are higher (e.g. 816 bytes in 9 files instead of 613 bytes in 4 files,
a bit of --debug and manual math confirms that the caches take these extra 203
bytes in 5 files).

Differential Revision: https://phab.mercurial-scm.org/D4680
4bd6e444
History
Name Last commit Last update
..
artifacts
blacklists
bundles
gpg
phabricator
sslcerts
svn
testlib
README
autodiff.py
badserverext.py
basic_test_result.py
binfile.bin
blackbox-readonly-dispatch.py
bruterebase.py
bzr-definitions
cgienv
check-gendoc
check-perf-code.py
common-pattern.py
crashgetbundler.py
drawdag.py
dumbhttp.py
dummysmtpd.py
dummyssh
f
failfilemerge.py
fakedirstatewritetime.py
fakemergerecord.py
fakepatchtime.py
filterpyflakes.py
flagprocessorext.py
fsmonitor-run-tests.py
generate-working-copy-states.py
get-with-headers.py
helper-runtests.sh
helpers-testrepo.sh
heredoctest.py
hghave
hghave.py
hgterm.ti
hgweberror.py
histedit-helpers.sh
hypothesishelpers.py
killdaemons.py
library-infinitepush.sh
list-tree.py
lockdelay.py
logexceptions.py
md5sum.py
missing-comment.hg
mockblackbox.py
mocktime.py
narrow-library.sh
notcapable
pdiff
printenv.py
printrevset.py
readlink.py
revlog-formatv0.py
revnamesext.py
run-tests.py
seq.py
silenttestrunner.py
simplestorerepo.py
sitecustomize.py
sshprotoext.py
svn-safe-append.py
svnxml.py
test-abort-checkin.t
test-absorb-edit-lines.t
test-absorb-filefixupstate.py
test-absorb-phase.t
test-absorb-rename.t
test-absorb-strip.t
test-absorb.t
test-acl.t
test-add.t
test-addremove-similar.t
test-addremove.t
test-alias.t
test-amend-subrepo.t
test-amend.t
test-ancestor.py
test-ancestor.py.out
test-annotate.py
test-annotate.t
test-arbitraryfilectx.t
test-archive-symlinks.t
test-archive.t
test-atomictempfile.py
test-audit-path.t
test-audit-subrepo.t
test-automv.t
test-backout.t
test-backwards-remove.t
test-bad-extension.t
test-bad-pull.t
test-basic.t
test-batching.py