D11219: clone: add a file with special character while testing uncompressed
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Tue Jul 27 20:15:28 UTC 2021
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REVISION SUMMARY
This will make sure we currently do not have any actual impact from issue6548.
REPOSITORY
rHG Mercurial
BRANCH
stable
REVISION DETAIL
https://phab.mercurial-scm.org/D11219
AFFECTED FILES
tests/test-clone-uncompressed.t
CHANGE DETAILS
diff --git a/tests/test-clone-uncompressed.t b/tests/test-clone-uncompressed.t
--- a/tests/test-clone-uncompressed.t
+++ b/tests/test-clone-uncompressed.t
@@ -89,6 +89,13 @@
$ echo foo > store/undo.foo.d
$ echo foo > store/undo.foo.n
$ echo foo > store/undo.babar
+
+Name with special characters
+
+ $ echo foo > store/CélesteVille_is_a_Capital_City
+
+All all that
+
$ hg add .
adding 00changelog-ab349180a0405010.nd
adding 00changelog.d
@@ -132,6 +139,7 @@
adding savanah/undo.i
adding savanah/undo.n
adding savanah/undo.py
+ adding store/C\xc3\xa9lesteVille_is_a_Capital_City (esc)
adding store/foo.d
adding store/foo.i
adding store/foo.n
@@ -164,7 +172,7 @@
$ hg clone server local-clone
updating to branch default
- 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
+ 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
Check uncompressed
==================
@@ -224,8 +232,8 @@
adding changesets
adding manifests
adding file changes
- added 3 changesets with 1086 changes to 1086 files
- new changesets 96ee1d7354c4:7406a3463c3d
+ added 3 changesets with 1087 changes to 1087 files
+ new changesets 96ee1d7354c4:42e820400e84
$ get-with-headers.py $LOCALIP:$HGPORT '?cmd=getbundle' content-type --bodyfile body --hgproto 0.2 --requestheader "x-hgarg-1=bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=0&common=0000000000000000000000000000000000000000&heads=c17445101a72edac06facd130d14808dfbd5c7c2&stream=1"
200 Script output follows
@@ -291,8 +299,8 @@
adding changesets
adding manifests
adding file changes
- added 3 changesets with 1086 changes to 1086 files
- new changesets 96ee1d7354c4:7406a3463c3d
+ added 3 changesets with 1087 changes to 1087 files
+ new changesets 96ee1d7354c4:42e820400e84
$ get-with-headers.py $LOCALIP:$HGPORT '?cmd=getbundle' content-type --bodyfile body --hgproto 0.2 --requestheader "x-hgarg-1=bundlecaps=HG20%2Cbundle2%3DHG20%250Abookmarks%250Achangegroup%253D01%252C02%250Adigests%253Dmd5%252Csha1%252Csha512%250Aerror%253Dabort%252Cunsupportedcontent%252Cpushraced%252Cpushkey%250Ahgtagsfnodes%250Alistkeys%250Aphases%253Dheads%250Apushkey%250Aremote-changegroup%253Dhttp%252Chttps&cg=0&common=0000000000000000000000000000000000000000&heads=c17445101a72edac06facd130d14808dfbd5c7c2&stream=1"
200 Script output follows
@@ -322,10 +330,10 @@
#if stream-legacy
$ hg clone --stream -U http://localhost:$HGPORT clone1
streaming all changes
- 1088 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 !)
- 1088 files to transfer, 98.4 KB of data (zstd !)
- transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
+ 1089 files to transfer, 98.5 KB of data (zstd !)
+ transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
searching for changes
no changes found
$ cat server/errors.txt
@@ -333,10 +341,10 @@
#if stream-bundle2
$ hg clone --stream -U http://localhost:$HGPORT clone1
streaming all changes
- 1091 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 !)
- 1091 files to transfer, 98.5 KB of data (zstd !)
- transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
+ 1092 files to transfer, 98.6 KB of data (zstd !)
+ transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !)
$ ls -1 clone1/.hg/cache
branch2-base
@@ -361,12 +369,12 @@
#if no-zstd no-rust
$ f --size --hex --bytes 256 body
- body: size=118551
+ body: size=118737
0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
0010: 80 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
0020: 06 09 04 0c 44 62 79 74 65 63 6f 75 6e 74 31 30 |....Dbytecount10|
- 0030: 33 36 39 35 66 69 6c 65 63 6f 75 6e 74 31 30 39 |3695filecount109|
- 0040: 31 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |1requirementsdot|
+ 0030: 33 38 33 34 66 69 6c 65 63 6f 75 6e 74 31 30 39 |3834filecount109|
+ 0040: 32 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |2requirementsdot|
0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
0070: 32 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 |2Crevlogv1%2Cspa|
@@ -381,12 +389,12 @@
#endif
#if zstd no-rust
$ f --size --hex --bytes 256 body
- body: size=115738
+ body: size=115921
0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
0010: 9a 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
0020: 06 09 04 0c 5e 62 79 74 65 63 6f 75 6e 74 31 30 |....^bytecount10|
- 0030: 30 38 35 36 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0856filecount109|
- 0040: 31 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |1requirementsdot|
+ 0030: 30 39 39 32 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0992filecount109|
+ 0040: 32 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |2requirementsdot|
0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
0070: 32 43 72 65 76 6c 6f 67 2d 63 6f 6d 70 72 65 73 |2Crevlog-compres|
@@ -401,12 +409,12 @@
#endif
#if zstd rust no-dirstate-v2
$ f --size --hex --bytes 256 body
- body: size=115759
+ body: size=115942
0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
0010: af 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
0020: 06 09 04 0c 73 62 79 74 65 63 6f 75 6e 74 31 30 |....sbytecount10|
- 0030: 30 38 35 36 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0856filecount109|
- 0040: 31 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |1requirementsdot|
+ 0030: 30 39 39 32 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0992filecount109|
+ 0040: 32 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |2requirementsdot|
0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
0070: 32 43 70 65 72 73 69 73 74 65 6e 74 2d 6e 6f 64 |2Cpersistent-nod|
@@ -421,7 +429,7 @@
#endif
#if zstd dirstate-v2
$ f --size --hex --bytes 256 body
- body: size=109449
+ body: size=109549
0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
0010: c0 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
0020: 05 09 04 0c 85 62 79 74 65 63 6f 75 6e 74 39 35 |.....bytecount95|
@@ -445,20 +453,20 @@
#if stream-legacy
$ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
streaming all changes
- 1088 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 !)
- 1088 files to transfer, 98.4 KB of data (zstd !)
- transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
+ 1089 files to transfer, 98.5 KB of data (zstd !)
+ transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
searching for changes
no changes found
#endif
#if stream-bundle2
$ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
streaming all changes
- 1091 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 !)
- 1091 files to transfer, 98.5 KB of data (zstd !)
- transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
+ 1092 files to transfer, 98.6 KB of data (zstd !)
+ transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !)
#endif
Clone with background file closing enabled
@@ -470,12 +478,12 @@
sending branchmap command
streaming all changes
sending stream_out command
- 1088 files to transfer, 101 KB of data (no-zstd !)
- 1088 files to transfer, 98.4 KB of data (zstd !)
+ 1089 files to transfer, 101 KB of data (no-zstd !)
+ 1089 files to transfer, 98.5 KB of data (zstd !)
starting 4 threads for background file closing
updating the branch cache
transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
- transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
+ transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
query 1; heads
sending batch command
searching for changes
@@ -502,15 +510,15 @@
bundle2-input-bundle: with-transaction
bundle2-input-part: "stream2" (params: 3 mandatory) supported
applying stream bundle
- 1091 files to transfer, 101 KB of data (no-zstd !)
- 1091 files to transfer, 98.5 KB of data (zstd !)
+ 1092 files to transfer, 101 KB of data (no-zstd !)
+ 1092 files to transfer, 98.6 KB of data (zstd !)
starting 4 threads for background file closing
starting 4 threads for background file closing
updating the branch cache
transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
- bundle2-input-part: total payload size 118382 (no-zstd !)
- transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
- bundle2-input-part: total payload size 115543 (zstd !)
+ bundle2-input-part: total payload size 118568 (no-zstd !)
+ transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !)
+ bundle2-input-part: total payload size 115726 (zstd !)
bundle2-input-part: "listkeys" (params: 1 mandatory) supported
bundle2-input-bundle: 2 parts total
checking for updated bookmarks
@@ -542,20 +550,20 @@
#if stream-legacy
$ hg clone --stream -U http://localhost:$HGPORT secret-allowed
streaming all changes
- 1088 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 !)
- 1088 files to transfer, 98.4 KB of data (zstd !)
- transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
+ 1089 files to transfer, 98.5 KB of data (zstd !)
+ transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
searching for changes
no changes found
#endif
#if stream-bundle2
$ hg clone --stream -U http://localhost:$HGPORT secret-allowed
streaming all changes
- 1091 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 !)
- 1091 files to transfer, 98.5 KB of data (zstd !)
- transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
+ 1092 files to transfer, 98.6 KB of data (zstd !)
+ transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !)
#endif
$ killdaemons.py
@@ -694,33 +702,33 @@
#if stream-legacy
$ hg clone --stream http://localhost:$HGPORT with-bookmarks
streaming all changes
- 1088 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 !)
- 1088 files to transfer, 98.4 KB of data (zstd !)
- transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
+ 1089 files to transfer, 98.5 KB of data (zstd !)
+ transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
searching for changes
no changes found
updating to branch default
- 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
+ 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
#endif
#if stream-bundle2
$ hg clone --stream http://localhost:$HGPORT with-bookmarks
streaming all changes
- 1094 files to transfer, 101 KB of data (no-zstd !)
- transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
- 1094 files to transfer, 98.7 KB of data (zstd !)
- transferred 98.7 KB in * seconds (* */sec) (glob) (zstd !)
+ 1095 files to transfer, 102 KB of data (no-zstd !)
+ transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
+ 1095 files to transfer, 98.8 KB of data (zstd !)
+ transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
updating to branch default
- 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
+ 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
#endif
$ hg verify -R with-bookmarks
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
- checked 3 changesets with 1086 changes to 1086 files
+ checked 3 changesets with 1087 changes to 1087 files
$ hg -R with-bookmarks bookmarks
- some-bookmark 2:7406a3463c3d
+ some-bookmark 2:42e820400e84
Stream repository with phases
-----------------------------
@@ -735,31 +743,31 @@
#if stream-legacy
$ hg clone --stream http://localhost:$HGPORT phase-publish
streaming all changes
- 1088 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 !)
- 1088 files to transfer, 98.4 KB of data (zstd !)
- transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
+ 1089 files to transfer, 98.5 KB of data (zstd !)
+ transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
searching for changes
no changes found
updating to branch default
- 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
+ 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
#endif
#if stream-bundle2
$ hg clone --stream http://localhost:$HGPORT phase-publish
streaming all changes
- 1094 files to transfer, 101 KB of data (no-zstd !)
- transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
- 1094 files to transfer, 98.7 KB of data (zstd !)
- transferred 98.7 KB in * seconds (* */sec) (glob) (zstd !)
+ 1095 files to transfer, 102 KB of data (no-zstd !)
+ transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
+ 1095 files to transfer, 98.8 KB of data (zstd !)
+ transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
updating to branch default
- 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
+ 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
#endif
$ hg verify -R phase-publish
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
- checked 3 changesets with 1086 changes to 1086 files
+ checked 3 changesets with 1087 changes to 1087 files
$ hg -R phase-publish phase -r 'all()'
0: public
1: public
@@ -782,14 +790,14 @@
$ hg clone --stream http://localhost:$HGPORT phase-no-publish
streaming all changes
- 1088 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 !)
- 1088 files to transfer, 98.4 KB of data (zstd !)
- transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
+ 1089 files to transfer, 98.5 KB of data (zstd !)
+ transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
searching for changes
no changes found
updating to branch default
- 1086 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()'
0: public
1: public
@@ -798,12 +806,12 @@
#if stream-bundle2
$ hg clone --stream http://localhost:$HGPORT phase-no-publish
streaming all changes
- 1095 files to transfer, 101 KB of data (no-zstd !)
- transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
- 1095 files to transfer, 98.7 KB of data (zstd !)
- transferred 98.7 KB in * seconds (* */sec) (glob) (zstd !)
+ 1096 files to transfer, 102 KB of data (no-zstd !)
+ transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
+ 1096 files to transfer, 98.8 KB of data (zstd !)
+ transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
updating to branch default
- 1086 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()'
0: draft
1: draft
@@ -814,7 +822,7 @@
checking manifests
crosschecking files in changesets and manifests
checking files
- checked 3 changesets with 1086 changes to 1086 files
+ checked 3 changesets with 1087 changes to 1087 files
$ killdaemons.py
@@ -853,22 +861,22 @@
$ hg clone -U --stream http://localhost:$HGPORT with-obsolescence
streaming all changes
- 1096 files to transfer, 102 KB of data (no-zstd !)
+ 1097 files to transfer, 102 KB of data (no-zstd !)
transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
- 1096 files to transfer, 99.1 KB of data (zstd !)
- transferred 99.1 KB in * seconds (* */sec) (glob) (zstd !)
+ 1097 files to transfer, 99.2 KB of data (zstd !)
+ transferred 99.2 KB in * seconds (* */sec) (glob) (zstd !)
$ hg -R with-obsolescence log -T '{rev}: {phase}\n'
2: draft
1: draft
0: draft
$ hg debugobsolete -R with-obsolescence
- aa82d3f59e13f41649d8ba3324e1ac8849ba78e7 0 {7406a3463c3de22c4288b4306d199705369a285a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
+ e53e122156df12330d3a0b72351e3a84bfd14195 0 {42e820400e843bc479ad36068ff772a69c8affe9} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
$ hg verify -R with-obsolescence
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
- checked 4 changesets with 1087 changes to 1086 files
+ checked 4 changesets with 1088 changes to 1087 files
$ hg clone -U --stream --config experimental.evolution=0 http://localhost:$HGPORT with-obsolescence-no-evolution
streaming all changes
To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
More information about the Mercurial-devel
mailing list