##// 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 br'(.*file:/)/?(/\$TESTTMP.*)',
115 br'(.*file:/)/?(/\$TESTTMP.*)',
116 lambda m: m.group(1) + b'*' + m.group(2) + b' (glob)',
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 # Various platform error strings, keyed on a common replacement string
128 # Various platform error strings, keyed on a common replacement string
@@ -403,7 +403,7 b' transaction)'
403 6 files to transfer, 2.60 KB of data
403 6 files to transfer, 2.60 KB of data
404 pretxnopen: 000000000000
404 pretxnopen: 000000000000
405 pretxnclose: aa35859c02ea
405 pretxnclose: aa35859c02ea
406 transferred 2.60 KB in *.* seconds (* */sec) (glob)
406 transferred 2.60 KB in * seconds (* */sec) (glob)
407 txnclose: aa35859c02ea
407 txnclose: aa35859c02ea
408
408
409 (for safety, confirm visibility of streamclone-ed changes by another
409 (for safety, confirm visibility of streamclone-ed changes by another
@@ -331,9 +331,9 b' Basic clone'
331 $ hg clone --stream -U http://localhost:$HGPORT clone1
331 $ hg clone --stream -U http://localhost:$HGPORT clone1
332 streaming all changes
332 streaming all changes
333 1089 files to transfer, 101 KB of data (no-zstd !)
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 1089 files to transfer, 98.5 KB of data (zstd !)
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 searching for changes
337 searching for changes
338 no changes found
338 no changes found
339 $ cat server/errors.txt
339 $ cat server/errors.txt
@@ -342,7 +342,7 b' Basic clone'
342 $ hg clone --stream -U http://localhost:$HGPORT clone1
342 $ hg clone --stream -U http://localhost:$HGPORT clone1
343 streaming all changes
343 streaming all changes
344 1092 files to transfer, 101 KB of data (no-zstd !)
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 1092 files to transfer, 98.6 KB of data (zstd !)
346 1092 files to transfer, 98.6 KB of data (zstd !)
347 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !)
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 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
454 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed
455 streaming all changes
455 streaming all changes
456 1089 files to transfer, 101 KB of data (no-zstd !)
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 1089 files to transfer, 98.5 KB of data (zstd !)
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 searching for changes
460 searching for changes
461 no changes found
461 no changes found
462 #endif
462 #endif
@@ -482,8 +482,8 b' Clone with background file closing enabl'
482 1089 files to transfer, 98.5 KB of data (zstd !)
482 1089 files to transfer, 98.5 KB of data (zstd !)
483 starting 4 threads for background file closing
483 starting 4 threads for background file closing
484 updating the branch cache
484 updating the branch cache
485 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !)
485 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
486 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !)
486 transferred 98.5 KB in * seconds (* */sec) (glob) (zstd !)
487 query 1; heads
487 query 1; heads
488 sending batch command
488 sending batch command
489 searching for changes
489 searching for changes
@@ -551,9 +551,9 b' Streaming of secrets can be overridden b'
551 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
551 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed
552 streaming all changes
552 streaming all changes
553 1089 files to transfer, 101 KB of data (no-zstd !)
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 1089 files to transfer, 98.5 KB of data (zstd !)
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 searching for changes
557 searching for changes
558 no changes found
558 no changes found
559 #endif
559 #endif
@@ -744,9 +744,9 b' Clone as publishing'
744 $ hg clone --stream http://localhost:$HGPORT phase-publish
744 $ hg clone --stream http://localhost:$HGPORT phase-publish
745 streaming all changes
745 streaming all changes
746 1089 files to transfer, 101 KB of data (no-zstd !)
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 1089 files to transfer, 98.5 KB of data (zstd !)
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 searching for changes
750 searching for changes
751 no changes found
751 no changes found
752 updating to branch default
752 updating to branch default
@@ -793,7 +793,7 b' stream v1 unsuitable for non-publishing '
793 1089 files to transfer, 101 KB of data (no-zstd !)
793 1089 files to transfer, 101 KB of data (no-zstd !)
794 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
794 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !)
795 1089 files to transfer, 98.5 KB of data (zstd !)
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 searching for changes
797 searching for changes
798 no changes found
798 no changes found
799 updating to branch default
799 updating to branch default
@@ -385,7 +385,8 b' disable pull-based clones'
385 $ hg clone --stream --noupdate http://localhost:$HGPORT1/ test-stream-clone
385 $ hg clone --stream --noupdate http://localhost:$HGPORT1/ test-stream-clone
386 streaming all changes
386 streaming all changes
387 * files to transfer, * of data (glob)
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 searching for changes
390 searching for changes
390 no changes found
391 no changes found
391 #endif
392 #endif
@@ -91,7 +91,7 b' Test that we can apply the bundle as a s'
91 adding [c] branch2-served (94 bytes)
91 adding [c] branch2-served (94 bytes)
92 adding [c] rbc-names-v1 (7 bytes)
92 adding [c] rbc-names-v1 (7 bytes)
93 adding [c] rbc-revs-v1 (40 bytes)
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 bundle2-input-part: total payload size 1840
95 bundle2-input-part: total payload size 1840
96 bundle2-input-bundle: 1 parts total
96 bundle2-input-bundle: 1 parts total
97 updating the branch cache
97 updating the branch cache
@@ -148,7 +148,7 b' Test that we can apply the bundle as a s'
148 adding [c] branch2-served (94 bytes)
148 adding [c] branch2-served (94 bytes)
149 adding [c] rbc-names-v1 (7 bytes)
149 adding [c] rbc-names-v1 (7 bytes)
150 adding [c] rbc-revs-v1 (40 bytes)
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 bundle2-input-part: total payload size 1840
152 bundle2-input-part: total payload size 1840
153 bundle2-input-bundle: 1 parts total
153 bundle2-input-bundle: 1 parts total
154 updating the branch cache
154 updating the branch cache
General Comments 0
You need to be logged in to leave comments. Login now