##// END OF EJS Templates
clone: add a file with special character while testing uncompressed...
marmoute -
r48588:17211649 stable
parent child Browse files
Show More
@@ -89,6 +89,13 b' add files with "tricky" name:'
89 89 $ echo foo > store/undo.foo.d
90 90 $ echo foo > store/undo.foo.n
91 91 $ echo foo > store/undo.babar
92
93 Name with special characters
94
95 $ echo foo > store/CΓ©lesteVille_is_a_Capital_City
96
97 All all that
98
92 99 $ hg add .
93 100 adding 00changelog-ab349180a0405010.nd
94 101 adding 00changelog.d
@@ -132,6 +139,7 b' add files with "tricky" name:'
132 139 adding savanah/undo.i
133 140 adding savanah/undo.n
134 141 adding savanah/undo.py
142 adding store/C\xc3\xa9lesteVille_is_a_Capital_City (esc)
135 143 adding store/foo.d
136 144 adding store/foo.i
137 145 adding store/foo.n
@@ -164,7 +172,7 b' This is present here to reuse the testin'
164 172
165 173 $ hg clone server local-clone
166 174 updating to branch default
167 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
175 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
168 176
169 177 Check uncompressed
170 178 ==================
@@ -224,8 +232,8 b' Cannot stream clone when server.uncompre'
224 232 adding changesets
225 233 adding manifests
226 234 adding file changes
227 added 3 changesets with 1086 changes to 1086 files
228 new changesets 96ee1d7354c4:7406a3463c3d
235 added 3 changesets with 1087 changes to 1087 files
236 new changesets 96ee1d7354c4:42e820400e84
229 237
230 238 $ 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"
231 239 200 Script output follows
@@ -291,8 +299,8 b' Cannot stream clone when server.uncompre'
291 299 adding changesets
292 300 adding manifests
293 301 adding file changes
294 added 3 changesets with 1086 changes to 1086 files
295 new changesets 96ee1d7354c4:7406a3463c3d
302 added 3 changesets with 1087 changes to 1087 files
303 new changesets 96ee1d7354c4:42e820400e84
296 304
297 305 $ 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"
298 306 200 Script output follows
@@ -322,10 +330,10 b' Basic clone'
322 330 #if stream-legacy
323 331 $ hg clone --stream -U http://localhost:$HGPORT clone1
324 332 streaming all changes
325 1088 files to transfer, 101 KB of data (no-zstd !)
333 1089 files to transfer, 101 KB of data (no-zstd !)
326 334 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
327 1088 files to transfer, 98.4 KB of data (zstd !)
328 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
335 1089 files to transfer, 98.5 KB of data (zstd !)
336 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
329 337 searching for changes
330 338 no changes found
331 339 $ cat server/errors.txt
@@ -333,10 +341,10 b' Basic clone'
333 341 #if stream-bundle2
334 342 $ hg clone --stream -U http://localhost:$HGPORT clone1
335 343 streaming all changes
336 1091 files to transfer, 101 KB of data (no-zstd !)
344 1092 files to transfer, 101 KB of data (no-zstd !)
337 345 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
338 1091 files to transfer, 98.5 KB of data (zstd !)
339 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
346 1092 files to transfer, 98.6 KB of data (zstd !)
347 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !)
340 348
341 349 $ ls -1 clone1/.hg/cache
342 350 branch2-base
@@ -361,12 +369,12 b' getbundle requests with stream=1 are unc'
361 369
362 370 #if no-zstd no-rust
363 371 $ f --size --hex --bytes 256 body
364 body: size=118551
372 body: size=118737
365 373 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
366 374 0010: 80 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
367 375 0020: 06 09 04 0c 44 62 79 74 65 63 6f 75 6e 74 31 30 |....Dbytecount10|
368 0030: 33 36 39 35 66 69 6c 65 63 6f 75 6e 74 31 30 39 |3695filecount109|
369 0040: 31 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |1requirementsdot|
376 0030: 33 38 33 34 66 69 6c 65 63 6f 75 6e 74 31 30 39 |3834filecount109|
377 0040: 32 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |2requirementsdot|
370 378 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
371 379 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
372 380 0070: 32 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 |2Crevlogv1%2Cspa|
@@ -381,12 +389,12 b' getbundle requests with stream=1 are unc'
381 389 #endif
382 390 #if zstd no-rust
383 391 $ f --size --hex --bytes 256 body
384 body: size=115738
392 body: size=115921
385 393 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
386 394 0010: 9a 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
387 395 0020: 06 09 04 0c 5e 62 79 74 65 63 6f 75 6e 74 31 30 |....^bytecount10|
388 0030: 30 38 35 36 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0856filecount109|
389 0040: 31 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |1requirementsdot|
396 0030: 30 39 39 32 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0992filecount109|
397 0040: 32 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |2requirementsdot|
390 398 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
391 399 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
392 400 0070: 32 43 72 65 76 6c 6f 67 2d 63 6f 6d 70 72 65 73 |2Crevlog-compres|
@@ -401,12 +409,12 b' getbundle requests with stream=1 are unc'
401 409 #endif
402 410 #if zstd rust no-dirstate-v2
403 411 $ f --size --hex --bytes 256 body
404 body: size=115759
412 body: size=115942
405 413 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
406 414 0010: af 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
407 415 0020: 06 09 04 0c 73 62 79 74 65 63 6f 75 6e 74 31 30 |....sbytecount10|
408 0030: 30 38 35 36 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0856filecount109|
409 0040: 31 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |1requirementsdot|
416 0030: 30 39 39 32 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0992filecount109|
417 0040: 32 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |2requirementsdot|
410 418 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache|
411 419 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%|
412 420 0070: 32 43 70 65 72 73 69 73 74 65 6e 74 2d 6e 6f 64 |2Cpersistent-nod|
@@ -421,7 +429,7 b' getbundle requests with stream=1 are unc'
421 429 #endif
422 430 #if zstd dirstate-v2
423 431 $ f --size --hex --bytes 256 body
424 body: size=109449
432 body: size=109549
425 433 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......|
426 434 0010: c0 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......|
427 435 0020: 05 09 04 0c 85 62 79 74 65 63 6f 75 6e 74 39 35 |.....bytecount95|
@@ -445,20 +453,20 b' getbundle requests with stream=1 are unc'
445 453 #if stream-legacy
446 454 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
447 455 streaming all changes
448 1088 files to transfer, 101 KB of data (no-zstd !)
456 1089 files to transfer, 101 KB of data (no-zstd !)
449 457 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
450 1088 files to transfer, 98.4 KB of data (zstd !)
451 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
458 1089 files to transfer, 98.5 KB of data (zstd !)
459 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
452 460 searching for changes
453 461 no changes found
454 462 #endif
455 463 #if stream-bundle2
456 464 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
457 465 streaming all changes
458 1091 files to transfer, 101 KB of data (no-zstd !)
466 1092 files to transfer, 101 KB of data (no-zstd !)
459 467 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
460 1091 files to transfer, 98.5 KB of data (zstd !)
461 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
468 1092 files to transfer, 98.6 KB of data (zstd !)
469 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !)
462 470 #endif
463 471
464 472 Clone with background file closing enabled
@@ -470,12 +478,12 b' Clone with background file closing enabl'
470 478 sending branchmap command
471 479 streaming all changes
472 480 sending stream_out command
473 1088 files to transfer, 101 KB of data (no-zstd !)
474 1088 files to transfer, 98.4 KB of data (zstd !)
481 1089 files to transfer, 101 KB of data (no-zstd !)
482 1089 files to transfer, 98.5 KB of data (zstd !)
475 483 starting 4 threads for background file closing
476 484 updating the branch cache
477 485 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
478 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
486 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
479 487 query 1; heads
480 488 sending batch command
481 489 searching for changes
@@ -502,15 +510,15 b' Clone with background file closing enabl'
502 510 bundle2-input-bundle: with-transaction
503 511 bundle2-input-part: "stream2" (params: 3 mandatory) supported
504 512 applying stream bundle
505 1091 files to transfer, 101 KB of data (no-zstd !)
506 1091 files to transfer, 98.5 KB of data (zstd !)
513 1092 files to transfer, 101 KB of data (no-zstd !)
514 1092 files to transfer, 98.6 KB of data (zstd !)
507 515 starting 4 threads for background file closing
508 516 starting 4 threads for background file closing
509 517 updating the branch cache
510 518 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
511 bundle2-input-part: total payload size 118382 (no-zstd !)
512 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
513 bundle2-input-part: total payload size 115543 (zstd !)
519 bundle2-input-part: total payload size 118568 (no-zstd !)
520 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !)
521 bundle2-input-part: total payload size 115726 (zstd !)
514 522 bundle2-input-part: "listkeys" (params: 1 mandatory) supported
515 523 bundle2-input-bundle: 2 parts total
516 524 checking for updated bookmarks
@@ -542,20 +550,20 b' Streaming of secrets can be overridden b'
542 550 #if stream-legacy
543 551 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
544 552 streaming all changes
545 1088 files to transfer, 101 KB of data (no-zstd !)
553 1089 files to transfer, 101 KB of data (no-zstd !)
546 554 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
547 1088 files to transfer, 98.4 KB of data (zstd !)
548 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
555 1089 files to transfer, 98.5 KB of data (zstd !)
556 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
549 557 searching for changes
550 558 no changes found
551 559 #endif
552 560 #if stream-bundle2
553 561 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
554 562 streaming all changes
555 1091 files to transfer, 101 KB of data (no-zstd !)
563 1092 files to transfer, 101 KB of data (no-zstd !)
556 564 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
557 1091 files to transfer, 98.5 KB of data (zstd !)
558 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
565 1092 files to transfer, 98.6 KB of data (zstd !)
566 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !)
559 567 #endif
560 568
561 569 $ killdaemons.py
@@ -694,33 +702,33 b' clone it'
694 702 #if stream-legacy
695 703 $ hg clone --stream http://localhost:$HGPORT with-bookmarks
696 704 streaming all changes
697 1088 files to transfer, 101 KB of data (no-zstd !)
705 1089 files to transfer, 101 KB of data (no-zstd !)
698 706 transferred 101 KB in * seconds (*) (glob) (no-zstd !)
699 1088 files to transfer, 98.4 KB of data (zstd !)
700 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
707 1089 files to transfer, 98.5 KB of data (zstd !)
708 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
701 709 searching for changes
702 710 no changes found
703 711 updating to branch default
704 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
712 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
705 713 #endif
706 714 #if stream-bundle2
707 715 $ hg clone --stream http://localhost:$HGPORT with-bookmarks
708 716 streaming all changes
709 1094 files to transfer, 101 KB of data (no-zstd !)
710 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
711 1094 files to transfer, 98.7 KB of data (zstd !)
712 transferred 98.7 KB in * seconds (* */sec) (glob) (zstd !)
717 1095 files to transfer, 102 KB of data (no-zstd !)
718 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
719 1095 files to transfer, 98.8 KB of data (zstd !)
720 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
713 721 updating to branch default
714 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
722 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
715 723 #endif
716 724 $ hg verify -R with-bookmarks
717 725 checking changesets
718 726 checking manifests
719 727 crosschecking files in changesets and manifests
720 728 checking files
721 checked 3 changesets with 1086 changes to 1086 files
729 checked 3 changesets with 1087 changes to 1087 files
722 730 $ hg -R with-bookmarks bookmarks
723 some-bookmark 2:7406a3463c3d
731 some-bookmark 2:42e820400e84
724 732
725 733 Stream repository with phases
726 734 -----------------------------
@@ -735,31 +743,31 b' Clone as publishing'
735 743 #if stream-legacy
736 744 $ hg clone --stream http://localhost:$HGPORT phase-publish
737 745 streaming all changes
738 1088 files to transfer, 101 KB of data (no-zstd !)
746 1089 files to transfer, 101 KB of data (no-zstd !)
739 747 transferred 101 KB in * seconds (*) (glob) (no-zstd !)
740 1088 files to transfer, 98.4 KB of data (zstd !)
741 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
748 1089 files to transfer, 98.5 KB of data (zstd !)
749 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
742 750 searching for changes
743 751 no changes found
744 752 updating to branch default
745 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
753 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
746 754 #endif
747 755 #if stream-bundle2
748 756 $ hg clone --stream http://localhost:$HGPORT phase-publish
749 757 streaming all changes
750 1094 files to transfer, 101 KB of data (no-zstd !)
751 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
752 1094 files to transfer, 98.7 KB of data (zstd !)
753 transferred 98.7 KB in * seconds (* */sec) (glob) (zstd !)
758 1095 files to transfer, 102 KB of data (no-zstd !)
759 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
760 1095 files to transfer, 98.8 KB of data (zstd !)
761 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
754 762 updating to branch default
755 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
763 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
756 764 #endif
757 765 $ hg verify -R phase-publish
758 766 checking changesets
759 767 checking manifests
760 768 crosschecking files in changesets and manifests
761 769 checking files
762 checked 3 changesets with 1086 changes to 1086 files
770 checked 3 changesets with 1087 changes to 1087 files
763 771 $ hg -R phase-publish phase -r 'all()'
764 772 0: public
765 773 1: public
@@ -782,14 +790,14 b' stream v1 unsuitable for non-publishing '
782 790
783 791 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
784 792 streaming all changes
785 1088 files to transfer, 101 KB of data (no-zstd !)
793 1089 files to transfer, 101 KB of data (no-zstd !)
786 794 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
787 1088 files to transfer, 98.4 KB of data (zstd !)
788 transferred 98.4 KB in * seconds (*/sec) (glob) (zstd !)
795 1089 files to transfer, 98.5 KB of data (zstd !)
796 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
789 797 searching for changes
790 798 no changes found
791 799 updating to branch default
792 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
800 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
793 801 $ hg -R phase-no-publish phase -r 'all()'
794 802 0: public
795 803 1: public
@@ -798,12 +806,12 b' stream v1 unsuitable for non-publishing '
798 806 #if stream-bundle2
799 807 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
800 808 streaming all changes
801 1095 files to transfer, 101 KB of data (no-zstd !)
802 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
803 1095 files to transfer, 98.7 KB of data (zstd !)
804 transferred 98.7 KB in * seconds (* */sec) (glob) (zstd !)
809 1096 files to transfer, 102 KB of data (no-zstd !)
810 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
811 1096 files to transfer, 98.8 KB of data (zstd !)
812 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
805 813 updating to branch default
806 1086 files updated, 0 files merged, 0 files removed, 0 files unresolved
814 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved
807 815 $ hg -R phase-no-publish phase -r 'all()'
808 816 0: draft
809 817 1: draft
@@ -814,7 +822,7 b' stream v1 unsuitable for non-publishing '
814 822 checking manifests
815 823 crosschecking files in changesets and manifests
816 824 checking files
817 checked 3 changesets with 1086 changes to 1086 files
825 checked 3 changesets with 1087 changes to 1087 files
818 826
819 827 $ killdaemons.py
820 828
@@ -853,22 +861,22 b' Clone non-publishing with obsolescence'
853 861
854 862 $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence
855 863 streaming all changes
856 1096 files to transfer, 102 KB of data (no-zstd !)
864 1097 files to transfer, 102 KB of data (no-zstd !)
857 865 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
858 1096 files to transfer, 99.1 KB of data (zstd !)
859 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd !)
866 1097 files to transfer, 99.2 KB of data (zstd !)
867 transferred 99.2 KB in * seconds (* */sec) (glob) (zstd !)
860 868 $ hg -R with-obsolescence log -T '{rev}: {phase}\n'
861 869 2: draft
862 870 1: draft
863 871 0: draft
864 872 $ hg debugobsolete -R with-obsolescence
865 aa82d3f59e13f41649d8ba3324e1ac8849ba78e7 0 {7406a3463c3de22c4288b4306d199705369a285a} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
873 e53e122156df12330d3a0b72351e3a84bfd14195 0 {42e820400e843bc479ad36068ff772a69c8affe9} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'}
866 874 $ hg verify -R with-obsolescence
867 875 checking changesets
868 876 checking manifests
869 877 crosschecking files in changesets and manifests
870 878 checking files
871 checked 4 changesets with 1087 changes to 1086 files
879 checked 4 changesets with 1088 changes to 1087 files
872 880
873 881 $ hg clone -U --stream --config experimental.evolution=0 http://localhost:$HGPORT with-obsolescence-no-evolution
874 882 streaming all changes
General Comments 0
You need to be logged in to leave comments. Login now