Mercurial > hg
diff tests/test-stream-bundle-v2.t @ 50706:0452af304808
stream-clone: add a v3 version of the protocol
This new version is less rigid regarding the extract number of files and number
of bytes to be actually transfered, it also lays the groundwork for other
improvements.
The format stays experimental, but this is an interesting base to build upon.
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Thu, 01 Jun 2023 17:39:22 +0100 |
parents | 4238e6b22fc4 |
children | 36478b2ab8b3 |
line wrap: on
line diff
--- a/tests/test-stream-bundle-v2.t Thu Jun 01 18:20:28 2023 +0100 +++ b/tests/test-stream-bundle-v2.t Thu Jun 01 17:39:22 2023 +0100 @@ -63,9 +63,9 @@ stream2 -- {bytecount: 1693, filecount: 11, requirements: generaldelta%2Crevlogv1%2Csparserevlog} (mandatory: True) (stream-v2 no-zstd !) stream2 -- {bytecount: 1693, filecount: 11, requirements: generaldelta%2Crevlog-compression-zstd%2Crevlogv1%2Csparserevlog} (mandatory: True) (stream-v2 zstd no-rust !) stream2 -- {bytecount: 1693, filecount: 11, requirements: generaldelta%2Crevlog-compression-zstd%2Crevlogv1%2Csparserevlog} (mandatory: True) (stream-v2 rust !) - stream3-exp -- {bytecount: 1693, filecount: 11, requirements: generaldelta%2Crevlogv1%2Csparserevlog} (mandatory: True) (stream-v3 no-zstd !) - stream3-exp -- {bytecount: 1693, filecount: 11, requirements: generaldelta%2Crevlog-compression-zstd%2Crevlogv1%2Csparserevlog} (mandatory: True) (stream-v3 zstd no-rust !) - stream3-exp -- {bytecount: 1693, filecount: 11, requirements: generaldelta%2Crevlog-compression-zstd%2Crevlogv1%2Csparserevlog} (mandatory: True) (stream-v3 rust !) + stream3-exp -- {requirements: generaldelta%2Crevlogv1%2Csparserevlog} (mandatory: True) (stream-v3 no-zstd !) + stream3-exp -- {requirements: generaldelta%2Crevlog-compression-zstd%2Crevlogv1%2Csparserevlog} (mandatory: True) (stream-v3 zstd no-rust !) + stream3-exp -- {requirements: generaldelta%2Crevlog-compression-zstd%2Crevlogv1%2Csparserevlog} (mandatory: True) (stream-v3 rust !) $ hg debugbundle --spec bundle.hg none-v2;stream=v2;requirements%3Dgeneraldelta%2Crevlogv1%2Csparserevlog (stream-v2 no-zstd !) none-v2;stream=v2;requirements%3Dgeneraldelta%2Crevlog-compression-zstd%2Crevlogv1%2Csparserevlog (stream-v2 zstd no-rust !) @@ -94,9 +94,10 @@ applying clone bundle from http://localhost:$HGPORT1/bundle.hg bundle2-input-bundle: with-transaction bundle2-input-part: "stream2" (params: 3 mandatory) supported (stream-v2 !) - bundle2-input-part: "stream3-exp" (params: 3 mandatory) supported (stream-v3 !) + bundle2-input-part: "stream3-exp" (params: 1 mandatory) supported (stream-v3 !) applying stream bundle - 11 files to transfer, 1.65 KB of data + 11 files to transfer, 1.65 KB of data (stream-v2 !) + 11 entries to transfer (stream-v3 !) starting 4 threads for background file closing (?) starting 4 threads for background file closing (?) adding [s] data/A.i (66 bytes) @@ -111,7 +112,8 @@ adding [c] rbc-names-v1 (7 bytes) adding [c] rbc-revs-v1 (40 bytes) transferred 1.65 KB in * seconds (* */sec) (glob) - bundle2-input-part: total payload size 1840 + bundle2-input-part: total payload size 1840 (stream-v2 !) + bundle2-input-part: total payload size 1852 (stream-v3 !) bundle2-input-bundle: 1 parts total updating the branch cache finished applying clone bundle @@ -152,9 +154,10 @@ applying clone bundle from http://localhost:$HGPORT1/bundle.hg bundle2-input-bundle: with-transaction bundle2-input-part: "stream2" (params: 3 mandatory) supported (stream-v2 !) - bundle2-input-part: "stream3-exp" (params: 3 mandatory) supported (stream-v3 !) + bundle2-input-part: "stream3-exp" (params: 1 mandatory) supported (stream-v3 !) applying stream bundle - 11 files to transfer, 1.65 KB of data + 11 files to transfer, 1.65 KB of data (stream-v2 !) + 11 entries to transfer (stream-v3 !) starting 4 threads for background file closing (?) starting 4 threads for background file closing (?) adding [s] data/A.i (66 bytes) @@ -169,7 +172,8 @@ adding [c] rbc-names-v1 (7 bytes) adding [c] rbc-revs-v1 (40 bytes) transferred 1.65 KB in * seconds (* */sec) (glob) - bundle2-input-part: total payload size 1840 + bundle2-input-part: total payload size 1840 (stream-v2 !) + bundle2-input-part: total payload size 1852 (stream-v3 !) bundle2-input-bundle: 1 parts total updating the branch cache finished applying clone bundle