##// END OF EJS Templates
clone: automatically glob stream clone output in test...
marmoute -
r48682:8ae828fd stable
parent child Browse files
Show More
@@ -115,6 +115,14 b' substitutions = ['
115 115 br'(.*file:/)/?(/\$TESTTMP.*)',
116 116 lambda m: m.group(1) + b'*' + m.group(2) + b' (glob)',
117 117 ),
118 # `hg clone --stream` output
119 (
120 br'transferred (\S+?) KB in \S+? seconds \(.+?/sec\)(?: \(glob\))?(.*)',
121 lambda m: (
122 br'transferred %s KB in * seconds (* */sec) (glob)%s'
123 % (m.group(1), m.group(2))
124 ),
125 ),
118 126 ]
119 127
120 128 # Various platform error strings, keyed on a common replacement string
@@ -403,7 +403,7 b' transaction)'
403 403 6 files to transfer, 2.60 KB of data
404 404 pretxnopen: 000000000000
405 405 pretxnclose: aa35859c02ea
406 transferred 2.60 KB in *.* seconds (* */sec) (glob)
406 transferred 2.60 KB in * seconds (* */sec) (glob)
407 407 txnclose: aa35859c02ea
408 408
409 409 (for safety, confirm visibility of streamclone-ed changes by another
@@ -331,9 +331,9 b' Basic clone'
331 331 $ hg clone --stream -U http://localhost:$HGPORT clone1
332 332 streaming all changes
333 333 1089 files to transfer, 101 KB of data (no-zstd !)
334 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
334 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
335 335 1089 files to transfer, 98.5 KB of data (zstd !)
336 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
336 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
337 337 searching for changes
338 338 no changes found
339 339 $ cat server/errors.txt
@@ -342,7 +342,7 b' Basic clone'
342 342 $ hg clone --stream -U http://localhost:$HGPORT clone1
343 343 streaming all changes
344 344 1092 files to transfer, 101 KB of data (no-zstd !)
345 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
345 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
346 346 1092 files to transfer, 98.6 KB of data (zstd !)
347 347 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !)
348 348
@@ -454,9 +454,9 b' getbundle requests with stream=1 are unc'
454 454 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
455 455 streaming all changes
456 456 1089 files to transfer, 101 KB of data (no-zstd !)
457 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
457 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
458 458 1089 files to transfer, 98.5 KB of data (zstd !)
459 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
459 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
460 460 searching for changes
461 461 no changes found
462 462 #endif
@@ -482,8 +482,8 b' Clone with background file closing enabl'
482 482 1089 files to transfer, 98.5 KB of data (zstd !)
483 483 starting 4 threads for background file closing
484 484 updating the branch cache
485 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
486 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
485 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
486 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
487 487 query 1; heads
488 488 sending batch command
489 489 searching for changes
@@ -551,9 +551,9 b' Streaming of secrets can be overridden b'
551 551 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
552 552 streaming all changes
553 553 1089 files to transfer, 101 KB of data (no-zstd !)
554 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
554 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
555 555 1089 files to transfer, 98.5 KB of data (zstd !)
556 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
556 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
557 557 searching for changes
558 558 no changes found
559 559 #endif
@@ -744,9 +744,9 b' Clone as publishing'
744 744 $ hg clone --stream http://localhost:$HGPORT phase-publish
745 745 streaming all changes
746 746 1089 files to transfer, 101 KB of data (no-zstd !)
747 transferred 101 KB in * seconds (*) (glob) (no-zstd !)
747 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
748 748 1089 files to transfer, 98.5 KB of data (zstd !)
749 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
749 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
750 750 searching for changes
751 751 no changes found
752 752 updating to branch default
@@ -793,7 +793,7 b' stream v1 unsuitable for non-publishing '
793 793 1089 files to transfer, 101 KB of data (no-zstd !)
794 794 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
795 795 1089 files to transfer, 98.5 KB of data (zstd !)
796 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
796 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
797 797 searching for changes
798 798 no changes found
799 799 updating to branch default
@@ -385,7 +385,8 b' disable pull-based clones'
385 385 $ hg clone --stream --noupdate http://localhost:$HGPORT1/ test-stream-clone
386 386 streaming all changes
387 387 * files to transfer, * of data (glob)
388 transferred * in * seconds (* KB/sec) (glob)
388 transferred 1.36 KB in * seconds (* */sec) (glob) (no-zstd !)
389 transferred 1.38 KB in * seconds (* */sec) (glob) (zstd !)
389 390 searching for changes
390 391 no changes found
391 392 #endif
@@ -91,7 +91,7 b' Test that we can apply the bundle as a s'
91 91 adding [c] branch2-served (94 bytes)
92 92 adding [c] rbc-names-v1 (7 bytes)
93 93 adding [c] rbc-revs-v1 (40 bytes)
94 transferred 1.65 KB in \d\.\d seconds \(.*/sec\) (re)
94 transferred 1.65 KB in * seconds (* */sec) (glob)
95 95 bundle2-input-part: total payload size 1840
96 96 bundle2-input-bundle: 1 parts total
97 97 updating the branch cache
@@ -148,7 +148,7 b' Test that we can apply the bundle as a s'
148 148 adding [c] branch2-served (94 bytes)
149 149 adding [c] rbc-names-v1 (7 bytes)
150 150 adding [c] rbc-revs-v1 (40 bytes)
151 transferred 1.65 KB in *.* seconds (*/sec) (glob)
151 transferred 1.65 KB in * seconds (* */sec) (glob)
152 152 bundle2-input-part: total payload size 1840
153 153 bundle2-input-bundle: 1 parts total
154 154 updating the branch cache
General Comments 0
You need to be logged in to leave comments. Login now