comparison tests/test-debugcommands.t @ 39722:4bd6e444c76f

bundle2: make server.bundle2.stream default to True 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
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 17 Sep 2018 17:47:24 +0800
parents 5abc47d4ca6b
children 8a42aa04ef36
comparison
equal deleted inserted replaced
39721:1b5880352314 39722:4bd6e444c76f
606 running "*" "*\tests/dummyssh" "user@dummy" "hg -R debugrevlog serve --stdio" (glob) (windows !) 606 running "*" "*\tests/dummyssh" "user@dummy" "hg -R debugrevlog serve --stdio" (glob) (windows !)
607 devel-peer-request: hello+between 607 devel-peer-request: hello+between
608 devel-peer-request: pairs: 81 bytes 608 devel-peer-request: pairs: 81 bytes
609 sending hello command 609 sending hello command
610 sending between command 610 sending between command
611 remote: 413 611 remote: 427
612 remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS_SERVER$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash 612 remote: capabilities: batch branchmap $USUAL_BUNDLE2_CAPS$ changegroupsubset getbundle known lookup protocaps pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash
613 remote: 1 613 remote: 1
614 devel-peer-request: protocaps 614 devel-peer-request: protocaps
615 devel-peer-request: caps: * bytes (glob) 615 devel-peer-request: caps: * bytes (glob)
616 sending protocaps command 616 sending protocaps command
617 url: ssh://user@dummy/debugrevlog 617 url: ssh://user@dummy/debugrevlog