Touching test-clone-stream.t is very painful otherwise.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- stable
- Lint
No Linters Available - Unit
No Unit Test Coverage
( )
Touching test-clone-stream.t is very painful otherwise.
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | tests/common-pattern.py (8 lines) | |||
M | tests/test-clone-stream.t (24 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
2223528f1e13 | fe1c9740c52d | Pierre-Yves David | Aug 25 2021, 4:08 AM |
# pushing to file:/*/$TESTTMP/r2 (glob) | # pushing to file:/*/$TESTTMP/r2 (glob) | ||||
# comparing with file:/*/$TESTTMP/r2 (glob) | # comparing with file:/*/$TESTTMP/r2 (glob) | ||||
# sub/maybelarge.dat: largefile 34..9c not available from | # sub/maybelarge.dat: largefile 34..9c not available from | ||||
# file:/*/$TESTTMP/largefiles-repo (glob) | # file:/*/$TESTTMP/largefiles-repo (glob) | ||||
( | ( | ||||
br'(.*file:/)/?(/\$TESTTMP.*)', | br'(.*file:/)/?(/\$TESTTMP.*)', | ||||
lambda m: m.group(1) + b'*' + m.group(2) + b' (glob)', | lambda m: m.group(1) + b'*' + m.group(2) + b' (glob)', | ||||
), | ), | ||||
# `hg clone --stream` output | |||||
( | |||||
br'transferred (\S+?) KB in \S+? seconds \(.+?/sec\)(?: \(glob\))?(.*)', | |||||
lambda m: ( | |||||
br'transferred %s KB in * seconds (* */sec) (glob)%s' | |||||
% (m.group(1), m.group(2)) | |||||
), | |||||
), | |||||
] | ] | ||||
# Various platform error strings, keyed on a common replacement string | # Various platform error strings, keyed on a common replacement string | ||||
_errors = { | _errors = { | ||||
br'$ENOENT$': ( | br'$ENOENT$': ( | ||||
# IOError in Python does not have the same error message | # IOError in Python does not have the same error message | ||||
# than in Rust, and automatic conversion is not possible | # than in Rust, and automatic conversion is not possible | ||||
# because of module member privacy. | # because of module member privacy. |
$ cd .. | $ cd .. | ||||
Basic clone | Basic clone | ||||
#if stream-legacy | #if stream-legacy | ||||
$ hg clone --stream -U http://localhost:$HGPORT clone1 | $ hg clone --stream -U http://localhost:$HGPORT clone1 | ||||
streaming all changes | streaming all changes | ||||
1089 files to transfer, 101 KB of data (no-zstd !) | 1089 files to transfer, 101 KB of data (no-zstd !) | ||||
transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !) | transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) | ||||
1089 files to transfer, 98.5 KB of data (zstd !) | 1089 files to transfer, 98.5 KB of data (zstd !) | ||||
transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) | transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !) | ||||
searching for changes | searching for changes | ||||
no changes found | no changes found | ||||
$ cat server/errors.txt | $ cat server/errors.txt | ||||
#endif | #endif | ||||
#if stream-bundle2 | #if stream-bundle2 | ||||
$ hg clone --stream -U http://localhost:$HGPORT clone1 | $ hg clone --stream -U http://localhost:$HGPORT clone1 | ||||
streaming all changes | streaming all changes | ||||
1092 files to transfer, 101 KB of data (no-zstd !) | 1092 files to transfer, 101 KB of data (no-zstd !) | ||||
transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !) | transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) | ||||
1092 files to transfer, 98.6 KB of data (zstd !) | 1092 files to transfer, 98.6 KB of data (zstd !) | ||||
transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !) | transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !) | ||||
$ ls -1 clone1/.hg/cache | $ ls -1 clone1/.hg/cache | ||||
branch2-base | branch2-base | ||||
branch2-immutable | branch2-immutable | ||||
branch2-served | branch2-served | ||||
branch2-served.hidden | branch2-served.hidden | ||||
#endif | #endif | ||||
--uncompressed is an alias to --stream | --uncompressed is an alias to --stream | ||||
#if stream-legacy | #if stream-legacy | ||||
$ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed | $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed | ||||
streaming all changes | streaming all changes | ||||
1089 files to transfer, 101 KB of data (no-zstd !) | 1089 files to transfer, 101 KB of data (no-zstd !) | ||||
transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !) | transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) | ||||
1089 files to transfer, 98.5 KB of data (zstd !) | 1089 files to transfer, 98.5 KB of data (zstd !) | ||||
transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) | transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !) | ||||
searching for changes | searching for changes | ||||
no changes found | no changes found | ||||
#endif | #endif | ||||
#if stream-bundle2 | #if stream-bundle2 | ||||
$ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed | $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed | ||||
streaming all changes | streaming all changes | ||||
1092 files to transfer, 101 KB of data (no-zstd !) | 1092 files to transfer, 101 KB of data (no-zstd !) | ||||
transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) | transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) | ||||
sending capabilities command | sending capabilities command | ||||
sending branchmap command | sending branchmap command | ||||
streaming all changes | streaming all changes | ||||
sending stream_out command | sending stream_out command | ||||
1089 files to transfer, 101 KB of data (no-zstd !) | 1089 files to transfer, 101 KB of data (no-zstd !) | ||||
1089 files to transfer, 98.5 KB of data (zstd !) | 1089 files to transfer, 98.5 KB of data (zstd !) | ||||
starting 4 threads for background file closing | starting 4 threads for background file closing | ||||
updating the branch cache | updating the branch cache | ||||
transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !) | transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) | ||||
transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) | transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !) | ||||
query 1; heads | query 1; heads | ||||
sending batch command | sending batch command | ||||
searching for changes | searching for changes | ||||
all remote heads known locally | all remote heads known locally | ||||
no changes found | no changes found | ||||
sending getbundle command | sending getbundle command | ||||
bundle2-input-bundle: with-transaction | bundle2-input-bundle: with-transaction | ||||
bundle2-input-part: "listkeys" (params: 1 mandatory) supported | bundle2-input-part: "listkeys" (params: 1 mandatory) supported | ||||
$ hg serve --config server.uncompressedallowsecret=true -p $HGPORT -d --pid-file=hg.pid | $ hg serve --config server.uncompressedallowsecret=true -p $HGPORT -d --pid-file=hg.pid | ||||
$ cat hg.pid > $DAEMON_PIDS | $ cat hg.pid > $DAEMON_PIDS | ||||
$ cd .. | $ cd .. | ||||
#if stream-legacy | #if stream-legacy | ||||
$ hg clone --stream -U http://localhost:$HGPORT secret-allowed | $ hg clone --stream -U http://localhost:$HGPORT secret-allowed | ||||
streaming all changes | streaming all changes | ||||
1089 files to transfer, 101 KB of data (no-zstd !) | 1089 files to transfer, 101 KB of data (no-zstd !) | ||||
transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !) | transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) | ||||
1089 files to transfer, 98.5 KB of data (zstd !) | 1089 files to transfer, 98.5 KB of data (zstd !) | ||||
transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) | transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !) | ||||
searching for changes | searching for changes | ||||
no changes found | no changes found | ||||
#endif | #endif | ||||
#if stream-bundle2 | #if stream-bundle2 | ||||
$ hg clone --stream -U http://localhost:$HGPORT secret-allowed | $ hg clone --stream -U http://localhost:$HGPORT secret-allowed | ||||
streaming all changes | streaming all changes | ||||
1092 files to transfer, 101 KB of data (no-zstd !) | 1092 files to transfer, 101 KB of data (no-zstd !) | ||||
transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) | transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) | ||||
0: draft | 0: draft | ||||
1: draft | 1: draft | ||||
2: draft | 2: draft | ||||
#if stream-legacy | #if stream-legacy | ||||
$ hg clone --stream http://localhost:$HGPORT phase-publish | $ hg clone --stream http://localhost:$HGPORT phase-publish | ||||
streaming all changes | streaming all changes | ||||
1089 files to transfer, 101 KB of data (no-zstd !) | 1089 files to transfer, 101 KB of data (no-zstd !) | ||||
transferred 101 KB in * seconds (*) (glob) (no-zstd !) | transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) | ||||
1089 files to transfer, 98.5 KB of data (zstd !) | 1089 files to transfer, 98.5 KB of data (zstd !) | ||||
transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) | transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !) | ||||
searching for changes | searching for changes | ||||
no changes found | no changes found | ||||
updating to branch default | updating to branch default | ||||
1087 files updated, 0 files merged, 0 files removed, 0 files unresolved | 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||||
#endif | #endif | ||||
#if stream-bundle2 | #if stream-bundle2 | ||||
$ hg clone --stream http://localhost:$HGPORT phase-publish | $ hg clone --stream http://localhost:$HGPORT phase-publish | ||||
streaming all changes | streaming all changes | ||||
With v1 of the stream protocol, changeset are always cloned as public. It make | With v1 of the stream protocol, changeset are always cloned as public. It make | ||||
stream v1 unsuitable for non-publishing repository. | stream v1 unsuitable for non-publishing repository. | ||||
$ hg clone --stream http://localhost:$HGPORT phase-no-publish | $ hg clone --stream http://localhost:$HGPORT phase-no-publish | ||||
streaming all changes | streaming all changes | ||||
1089 files to transfer, 101 KB of data (no-zstd !) | 1089 files to transfer, 101 KB of data (no-zstd !) | ||||
transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) | transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) | ||||
1089 files to transfer, 98.5 KB of data (zstd !) | 1089 files to transfer, 98.5 KB of data (zstd !) | ||||
transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) | transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !) | ||||
searching for changes | searching for changes | ||||
no changes found | no changes found | ||||
updating to branch default | updating to branch default | ||||
1087 files updated, 0 files merged, 0 files removed, 0 files unresolved | 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||||
$ hg -R phase-no-publish phase -r 'all()' | $ hg -R phase-no-publish phase -r 'all()' | ||||
0: public | 0: public | ||||
1: public | 1: public | ||||
2: public | 2: public |