92 |
92 |
93 Name with special characters |
93 Name with special characters |
94 |
94 |
95 $ echo foo > store/CélesteVille_is_a_Capital_City |
95 $ echo foo > store/CélesteVille_is_a_Capital_City |
96 |
96 |
97 All all that |
97 name causing issue6581 |
|
98 |
|
99 $ mkdir --parents container/isam-build-centos7/ |
|
100 $ touch container/isam-build-centos7/bazel-coverage-generator-sandboxfs-compatibility-0758e3e4f6057904d44399bd666faba9e7f40686.patch |
|
101 |
|
102 Add all that |
98 |
103 |
99 $ hg add . |
104 $ hg add . |
100 adding 00changelog-ab349180a0405010.nd |
105 adding 00changelog-ab349180a0405010.nd |
101 adding 00changelog.d |
106 adding 00changelog.d |
102 adding 00changelog.i |
107 adding 00changelog.i |
103 adding 00changelog.n |
108 adding 00changelog.n |
104 adding 00manifest.d |
109 adding 00manifest.d |
105 adding 00manifest.i |
110 adding 00manifest.i |
|
111 adding container/isam-build-centos7/bazel-coverage-generator-sandboxfs-compatibility-0758e3e4f6057904d44399bd666faba9e7f40686.patch |
106 adding data/foo.d |
112 adding data/foo.d |
107 adding data/foo.i |
113 adding data/foo.i |
108 adding data/foo.n |
114 adding data/foo.n |
109 adding data/undo.babar |
115 adding data/undo.babar |
110 adding data/undo.d |
116 adding data/undo.d |
170 The logic is close enough of uncompressed. |
176 The logic is close enough of uncompressed. |
171 This is present here to reuse the testing around file with "special" names. |
177 This is present here to reuse the testing around file with "special" names. |
172 |
178 |
173 $ hg clone server local-clone |
179 $ hg clone server local-clone |
174 updating to branch default |
180 updating to branch default |
175 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved |
181 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
182 |
|
183 Check that the clone went well |
|
184 |
|
185 $ hg verify -R local-clone |
|
186 checking changesets |
|
187 checking manifests |
|
188 crosschecking files in changesets and manifests |
|
189 checking files |
|
190 checked 3 changesets with 1088 changes to 1088 files |
176 |
191 |
177 Check uncompressed |
192 Check uncompressed |
178 ================== |
193 ================== |
179 |
194 |
180 Cannot stream clone when server.uncompressed is set |
195 Cannot stream clone when server.uncompressed is set |
230 warning: stream clone requested but server has them disabled |
245 warning: stream clone requested but server has them disabled |
231 requesting all changes |
246 requesting all changes |
232 adding changesets |
247 adding changesets |
233 adding manifests |
248 adding manifests |
234 adding file changes |
249 adding file changes |
235 added 3 changesets with 1087 changes to 1087 files |
250 added 3 changesets with 1088 changes to 1088 files |
236 new changesets 96ee1d7354c4:42e820400e84 |
251 new changesets 96ee1d7354c4:5223b5e3265f |
237 |
252 |
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" |
253 $ 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" |
239 200 Script output follows |
254 200 Script output follows |
240 content-type: application/mercurial-0.2 |
255 content-type: application/mercurial-0.2 |
241 |
256 |
297 warning: stream clone requested but server has them disabled |
312 warning: stream clone requested but server has them disabled |
298 requesting all changes |
313 requesting all changes |
299 adding changesets |
314 adding changesets |
300 adding manifests |
315 adding manifests |
301 adding file changes |
316 adding file changes |
302 added 3 changesets with 1087 changes to 1087 files |
317 added 3 changesets with 1088 changes to 1088 files |
303 new changesets 96ee1d7354c4:42e820400e84 |
318 new changesets 96ee1d7354c4:5223b5e3265f |
304 |
319 |
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" |
320 $ 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" |
306 200 Script output follows |
321 200 Script output follows |
307 content-type: application/mercurial-0.2 |
322 content-type: application/mercurial-0.2 |
308 |
323 |
328 Basic clone |
343 Basic clone |
329 |
344 |
330 #if stream-legacy |
345 #if stream-legacy |
331 $ hg clone --stream -U http://localhost:$HGPORT clone1 |
346 $ hg clone --stream -U http://localhost:$HGPORT clone1 |
332 streaming all changes |
347 streaming all changes |
333 1089 files to transfer, 101 KB of data (no-zstd !) |
348 1090 files to transfer, 102 KB of data (no-zstd !) |
334 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !) |
349 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
335 1089 files to transfer, 98.5 KB of data (zstd !) |
350 1090 files to transfer, 98.8 KB of data (zstd !) |
336 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) |
351 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !) |
337 searching for changes |
352 searching for changes |
338 no changes found |
353 no changes found |
339 $ cat server/errors.txt |
354 $ cat server/errors.txt |
340 #endif |
355 #endif |
341 #if stream-bundle2 |
356 #if stream-bundle2 |
342 $ hg clone --stream -U http://localhost:$HGPORT clone1 |
357 $ hg clone --stream -U http://localhost:$HGPORT clone1 |
343 streaming all changes |
358 streaming all changes |
344 1092 files to transfer, 101 KB of data (no-zstd !) |
359 1093 files to transfer, 102 KB of data (no-zstd !) |
345 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !) |
360 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
346 1092 files to transfer, 98.6 KB of data (zstd !) |
361 1093 files to transfer, 98.9 KB of data (zstd !) |
347 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !) |
362 transferred 98.9 KB in * seconds (* */sec) (glob) (zstd !) |
348 |
363 |
349 $ ls -1 clone1/.hg/cache |
364 $ ls -1 clone1/.hg/cache |
350 branch2-base |
365 branch2-base |
351 branch2-immutable |
366 branch2-immutable |
352 branch2-served |
367 branch2-served |
367 content-type: application/mercurial-0.2 |
382 content-type: application/mercurial-0.2 |
368 |
383 |
369 |
384 |
370 #if no-zstd no-rust |
385 #if no-zstd no-rust |
371 $ f --size --hex --bytes 256 body |
386 $ f --size --hex --bytes 256 body |
372 body: size=118737 |
387 body: size=119153 |
373 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
388 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
374 0010: 80 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| |
389 0010: 80 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| |
375 0020: 06 09 04 0c 44 62 79 74 65 63 6f 75 6e 74 31 30 |....Dbytecount10| |
390 0020: 06 09 04 0c 44 62 79 74 65 63 6f 75 6e 74 31 30 |....Dbytecount10| |
376 0030: 33 38 33 34 66 69 6c 65 63 6f 75 6e 74 31 30 39 |3834filecount109| |
391 0030: 34 31 31 35 66 69 6c 65 63 6f 75 6e 74 31 30 39 |4115filecount109| |
377 0040: 32 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |2requirementsdot| |
392 0040: 33 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |3requirementsdot| |
378 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache| |
393 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache| |
379 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%| |
394 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%| |
380 0070: 32 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 |2Crevlogv1%2Cspa| |
395 0070: 32 43 72 65 76 6c 6f 67 76 31 25 32 43 73 70 61 |2Crevlogv1%2Cspa| |
381 0080: 72 73 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 |rserevlog%2Cstor| |
396 0080: 72 73 65 72 65 76 6c 6f 67 25 32 43 73 74 6f 72 |rserevlog%2Cstor| |
382 0090: 65 00 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 |e....s.Bdata/0.i| |
397 0090: 65 00 00 80 00 73 08 42 64 61 74 61 2f 30 2e 69 |e....s.Bdata/0.i| |
387 00e0: 75 30 73 26 45 64 61 74 61 2f 30 30 63 68 61 6e |u0s&Edata/00chan| |
402 00e0: 75 30 73 26 45 64 61 74 61 2f 30 30 63 68 61 6e |u0s&Edata/00chan| |
388 00f0: 67 65 6c 6f 67 2d 61 62 33 34 39 31 38 30 61 30 |gelog-ab349180a0| |
403 00f0: 67 65 6c 6f 67 2d 61 62 33 34 39 31 38 30 61 30 |gelog-ab349180a0| |
389 #endif |
404 #endif |
390 #if zstd no-rust |
405 #if zstd no-rust |
391 $ f --size --hex --bytes 256 body |
406 $ f --size --hex --bytes 256 body |
392 body: size=115921 |
407 body: size=116340 |
393 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
408 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
394 0010: 9a 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| |
409 0010: 9a 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| |
395 0020: 06 09 04 0c 5e 62 79 74 65 63 6f 75 6e 74 31 30 |....^bytecount10| |
410 0020: 06 09 04 0c 5e 62 79 74 65 63 6f 75 6e 74 31 30 |....^bytecount10| |
396 0030: 30 39 39 32 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0992filecount109| |
411 0030: 31 32 37 36 66 69 6c 65 63 6f 75 6e 74 31 30 39 |1276filecount109| |
397 0040: 32 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |2requirementsdot| |
412 0040: 33 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |3requirementsdot| |
398 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache| |
413 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache| |
399 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%| |
414 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%| |
400 0070: 32 43 72 65 76 6c 6f 67 2d 63 6f 6d 70 72 65 73 |2Crevlog-compres| |
415 0070: 32 43 72 65 76 6c 6f 67 2d 63 6f 6d 70 72 65 73 |2Crevlog-compres| |
401 0080: 73 69 6f 6e 2d 7a 73 74 64 25 32 43 72 65 76 6c |sion-zstd%2Crevl| |
416 0080: 73 69 6f 6e 2d 7a 73 74 64 25 32 43 72 65 76 6c |sion-zstd%2Crevl| |
402 0090: 6f 67 76 31 25 32 43 73 70 61 72 73 65 72 65 76 |ogv1%2Csparserev| |
417 0090: 6f 67 76 31 25 32 43 73 70 61 72 73 65 72 65 76 |ogv1%2Csparserev| |
407 00e0: 23 87 bf ce fe 56 67 92 67 2c 69 d1 ec 39 00 00 |#....Vg.g,i..9..| |
422 00e0: 23 87 bf ce fe 56 67 92 67 2c 69 d1 ec 39 00 00 |#....Vg.g,i..9..| |
408 00f0: 00 00 00 00 00 00 00 00 00 00 75 30 73 26 45 64 |..........u0s&Ed| |
423 00f0: 00 00 00 00 00 00 00 00 00 00 75 30 73 26 45 64 |..........u0s&Ed| |
409 #endif |
424 #endif |
410 #if zstd rust no-dirstate-v2 |
425 #if zstd rust no-dirstate-v2 |
411 $ f --size --hex --bytes 256 body |
426 $ f --size --hex --bytes 256 body |
412 body: size=115942 |
427 body: size=116361 |
413 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
428 0000: 04 6e 6f 6e 65 48 47 32 30 00 00 00 00 00 00 00 |.noneHG20.......| |
414 0010: af 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| |
429 0010: af 07 53 54 52 45 41 4d 32 00 00 00 00 03 00 09 |..STREAM2.......| |
415 0020: 06 09 04 0c 73 62 79 74 65 63 6f 75 6e 74 31 30 |....sbytecount10| |
430 0020: 06 09 04 0c 73 62 79 74 65 63 6f 75 6e 74 31 30 |....sbytecount10| |
416 0030: 30 39 39 32 66 69 6c 65 63 6f 75 6e 74 31 30 39 |0992filecount109| |
431 0030: 31 32 37 36 66 69 6c 65 63 6f 75 6e 74 31 30 39 |1276filecount109| |
417 0040: 32 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |2requirementsdot| |
432 0040: 33 72 65 71 75 69 72 65 6d 65 6e 74 73 64 6f 74 |3requirementsdot| |
418 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache| |
433 0050: 65 6e 63 6f 64 65 25 32 43 66 6e 63 61 63 68 65 |encode%2Cfncache| |
419 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%| |
434 0060: 25 32 43 67 65 6e 65 72 61 6c 64 65 6c 74 61 25 |%2Cgeneraldelta%| |
420 0070: 32 43 70 65 72 73 69 73 74 65 6e 74 2d 6e 6f 64 |2Cpersistent-nod| |
435 0070: 32 43 70 65 72 73 69 73 74 65 6e 74 2d 6e 6f 64 |2Cpersistent-nod| |
421 0080: 65 6d 61 70 25 32 43 72 65 76 6c 6f 67 2d 63 6f |emap%2Crevlog-co| |
436 0080: 65 6d 61 70 25 32 43 72 65 76 6c 6f 67 2d 63 6f |emap%2Crevlog-co| |
422 0090: 6d 70 72 65 73 73 69 6f 6e 2d 7a 73 74 64 25 32 |mpression-zstd%2| |
437 0090: 6d 70 72 65 73 73 69 6f 6e 2d 7a 73 74 64 25 32 |mpression-zstd%2| |
451 --uncompressed is an alias to --stream |
466 --uncompressed is an alias to --stream |
452 |
467 |
453 #if stream-legacy |
468 #if stream-legacy |
454 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed |
469 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed |
455 streaming all changes |
470 streaming all changes |
456 1089 files to transfer, 101 KB of data (no-zstd !) |
471 1090 files to transfer, 102 KB of data (no-zstd !) |
457 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !) |
472 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
458 1089 files to transfer, 98.5 KB of data (zstd !) |
473 1090 files to transfer, 98.8 KB of data (zstd !) |
459 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) |
474 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !) |
460 searching for changes |
475 searching for changes |
461 no changes found |
476 no changes found |
462 #endif |
477 #endif |
463 #if stream-bundle2 |
478 #if stream-bundle2 |
464 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed |
479 $ hg clone --uncompressed -U http://localhost:$HGPORT clone1-uncompressed |
465 streaming all changes |
480 streaming all changes |
466 1092 files to transfer, 101 KB of data (no-zstd !) |
481 1093 files to transfer, 102 KB of data (no-zstd !) |
467 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) |
482 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
468 1092 files to transfer, 98.6 KB of data (zstd !) |
483 1093 files to transfer, 98.9 KB of data (zstd !) |
469 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !) |
484 transferred 98.9 KB in * seconds (* */sec) (glob) (zstd !) |
470 #endif |
485 #endif |
471 |
486 |
472 Clone with background file closing enabled |
487 Clone with background file closing enabled |
473 |
488 |
474 #if stream-legacy |
489 #if stream-legacy |
476 using http://localhost:$HGPORT/ |
491 using http://localhost:$HGPORT/ |
477 sending capabilities command |
492 sending capabilities command |
478 sending branchmap command |
493 sending branchmap command |
479 streaming all changes |
494 streaming all changes |
480 sending stream_out command |
495 sending stream_out command |
481 1089 files to transfer, 101 KB of data (no-zstd !) |
496 1090 files to transfer, 102 KB of data (no-zstd !) |
482 1089 files to transfer, 98.5 KB of data (zstd !) |
497 1090 files to transfer, 98.8 KB of data (zstd !) |
483 starting 4 threads for background file closing |
498 starting 4 threads for background file closing |
484 updating the branch cache |
499 updating the branch cache |
485 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !) |
500 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
486 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) |
501 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !) |
487 query 1; heads |
502 query 1; heads |
488 sending batch command |
503 sending batch command |
489 searching for changes |
504 searching for changes |
490 all remote heads known locally |
505 all remote heads known locally |
491 no changes found |
506 no changes found |
508 streaming all changes |
523 streaming all changes |
509 sending getbundle command |
524 sending getbundle command |
510 bundle2-input-bundle: with-transaction |
525 bundle2-input-bundle: with-transaction |
511 bundle2-input-part: "stream2" (params: 3 mandatory) supported |
526 bundle2-input-part: "stream2" (params: 3 mandatory) supported |
512 applying stream bundle |
527 applying stream bundle |
513 1092 files to transfer, 101 KB of data (no-zstd !) |
528 1093 files to transfer, 102 KB of data (no-zstd !) |
514 1092 files to transfer, 98.6 KB of data (zstd !) |
529 1093 files to transfer, 98.9 KB of data (zstd !) |
515 starting 4 threads for background file closing |
530 starting 4 threads for background file closing |
516 starting 4 threads for background file closing |
531 starting 4 threads for background file closing |
517 updating the branch cache |
532 updating the branch cache |
518 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) |
533 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
519 bundle2-input-part: total payload size 118568 (no-zstd !) |
534 bundle2-input-part: total payload size 118984 (no-zstd !) |
520 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !) |
535 transferred 98.9 KB in * seconds (* */sec) (glob) (zstd !) |
521 bundle2-input-part: total payload size 115726 (zstd !) |
536 bundle2-input-part: total payload size 116145 (zstd !) |
522 bundle2-input-part: "listkeys" (params: 1 mandatory) supported |
537 bundle2-input-part: "listkeys" (params: 1 mandatory) supported |
523 bundle2-input-bundle: 2 parts total |
538 bundle2-input-bundle: 2 parts total |
524 checking for updated bookmarks |
539 checking for updated bookmarks |
525 updating the branch cache |
540 updating the branch cache |
526 (sent 3 HTTP requests and * bytes; received * bytes in responses) (glob) |
541 (sent 3 HTTP requests and * bytes; received * bytes in responses) (glob) |
548 $ cd .. |
563 $ cd .. |
549 |
564 |
550 #if stream-legacy |
565 #if stream-legacy |
551 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed |
566 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed |
552 streaming all changes |
567 streaming all changes |
553 1089 files to transfer, 101 KB of data (no-zstd !) |
568 1090 files to transfer, 102 KB of data (no-zstd !) |
554 transferred 101 KB in * seconds (*/sec) (glob) (no-zstd !) |
569 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
555 1089 files to transfer, 98.5 KB of data (zstd !) |
570 1090 files to transfer, 98.8 KB of data (zstd !) |
556 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) |
571 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !) |
557 searching for changes |
572 searching for changes |
558 no changes found |
573 no changes found |
559 #endif |
574 #endif |
560 #if stream-bundle2 |
575 #if stream-bundle2 |
561 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed |
576 $ hg clone --stream -U http://localhost:$HGPORT secret-allowed |
562 streaming all changes |
577 streaming all changes |
563 1092 files to transfer, 101 KB of data (no-zstd !) |
578 1093 files to transfer, 102 KB of data (no-zstd !) |
564 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) |
579 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
565 1092 files to transfer, 98.6 KB of data (zstd !) |
580 1093 files to transfer, 98.9 KB of data (zstd !) |
566 transferred 98.6 KB in * seconds (* */sec) (glob) (zstd !) |
581 transferred 98.9 KB in * seconds (* */sec) (glob) (zstd !) |
567 #endif |
582 #endif |
568 |
583 |
569 $ killdaemons.py |
584 $ killdaemons.py |
570 |
585 |
571 Verify interaction between preferuncompressed and secret presence |
586 Verify interaction between preferuncompressed and secret presence |
700 clone it |
715 clone it |
701 |
716 |
702 #if stream-legacy |
717 #if stream-legacy |
703 $ hg clone --stream http://localhost:$HGPORT with-bookmarks |
718 $ hg clone --stream http://localhost:$HGPORT with-bookmarks |
704 streaming all changes |
719 streaming all changes |
705 1089 files to transfer, 101 KB of data (no-zstd !) |
720 1090 files to transfer, 102 KB of data (no-zstd !) |
706 transferred 101 KB in * seconds (*) (glob) (no-zstd !) |
721 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
707 1089 files to transfer, 98.5 KB of data (zstd !) |
722 1090 files to transfer, 98.8 KB of data (zstd !) |
708 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) |
723 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !) |
709 searching for changes |
724 searching for changes |
710 no changes found |
725 no changes found |
711 updating to branch default |
726 updating to branch default |
712 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved |
727 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved |
713 #endif |
728 #endif |
714 #if stream-bundle2 |
729 #if stream-bundle2 |
715 $ hg clone --stream http://localhost:$HGPORT with-bookmarks |
730 $ hg clone --stream http://localhost:$HGPORT with-bookmarks |
716 streaming all changes |
731 streaming all changes |
717 1095 files to transfer, 102 KB of data (no-zstd !) |
732 1096 files to transfer, 102 KB of data (no-zstd !) |
718 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
733 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
719 1095 files to transfer, 98.8 KB of data (zstd !) |
734 1096 files to transfer, 99.1 KB of data (zstd !) |
720 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !) |
735 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd !) |
721 updating to branch default |
736 updating to branch default |
722 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved |
737 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved |
723 #endif |
738 #endif |
724 $ hg verify -R with-bookmarks |
739 $ hg verify -R with-bookmarks |
725 checking changesets |
740 checking changesets |
726 checking manifests |
741 checking manifests |
727 crosschecking files in changesets and manifests |
742 crosschecking files in changesets and manifests |
728 checking files |
743 checking files |
729 checked 3 changesets with 1087 changes to 1087 files |
744 checked 3 changesets with 1088 changes to 1088 files |
730 $ hg -R with-bookmarks bookmarks |
745 $ hg -R with-bookmarks bookmarks |
731 some-bookmark 2:42e820400e84 |
746 some-bookmark 2:5223b5e3265f |
732 |
747 |
733 Stream repository with phases |
748 Stream repository with phases |
734 ----------------------------- |
749 ----------------------------- |
735 |
750 |
736 Clone as publishing |
751 Clone as publishing |
741 2: draft |
756 2: draft |
742 |
757 |
743 #if stream-legacy |
758 #if stream-legacy |
744 $ hg clone --stream http://localhost:$HGPORT phase-publish |
759 $ hg clone --stream http://localhost:$HGPORT phase-publish |
745 streaming all changes |
760 streaming all changes |
746 1089 files to transfer, 101 KB of data (no-zstd !) |
761 1090 files to transfer, 102 KB of data (no-zstd !) |
747 transferred 101 KB in * seconds (*) (glob) (no-zstd !) |
762 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
748 1089 files to transfer, 98.5 KB of data (zstd !) |
763 1090 files to transfer, 98.8 KB of data (zstd !) |
749 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) |
764 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !) |
750 searching for changes |
765 searching for changes |
751 no changes found |
766 no changes found |
752 updating to branch default |
767 updating to branch default |
753 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved |
768 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved |
754 #endif |
769 #endif |
755 #if stream-bundle2 |
770 #if stream-bundle2 |
756 $ hg clone --stream http://localhost:$HGPORT phase-publish |
771 $ hg clone --stream http://localhost:$HGPORT phase-publish |
757 streaming all changes |
772 streaming all changes |
758 1095 files to transfer, 102 KB of data (no-zstd !) |
773 1096 files to transfer, 102 KB of data (no-zstd !) |
759 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
774 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
760 1095 files to transfer, 98.8 KB of data (zstd !) |
775 1096 files to transfer, 99.1 KB of data (zstd !) |
761 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !) |
776 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd !) |
762 updating to branch default |
777 updating to branch default |
763 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved |
778 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved |
764 #endif |
779 #endif |
765 $ hg verify -R phase-publish |
780 $ hg verify -R phase-publish |
766 checking changesets |
781 checking changesets |
767 checking manifests |
782 checking manifests |
768 crosschecking files in changesets and manifests |
783 crosschecking files in changesets and manifests |
769 checking files |
784 checking files |
770 checked 3 changesets with 1087 changes to 1087 files |
785 checked 3 changesets with 1088 changes to 1088 files |
771 $ hg -R phase-publish phase -r 'all()' |
786 $ hg -R phase-publish phase -r 'all()' |
772 0: public |
787 0: public |
773 1: public |
788 1: public |
774 2: public |
789 2: public |
775 |
790 |
788 With v1 of the stream protocol, changeset are always cloned as public. It make |
803 With v1 of the stream protocol, changeset are always cloned as public. It make |
789 stream v1 unsuitable for non-publishing repository. |
804 stream v1 unsuitable for non-publishing repository. |
790 |
805 |
791 $ hg clone --stream http://localhost:$HGPORT phase-no-publish |
806 $ hg clone --stream http://localhost:$HGPORT phase-no-publish |
792 streaming all changes |
807 streaming all changes |
793 1089 files to transfer, 101 KB of data (no-zstd !) |
808 1090 files to transfer, 102 KB of data (no-zstd !) |
794 transferred 101 KB in * seconds (* */sec) (glob) (no-zstd !) |
809 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
795 1089 files to transfer, 98.5 KB of data (zstd !) |
810 1090 files to transfer, 98.8 KB of data (zstd !) |
796 transferred 98.5 KB in * seconds (*/sec) (glob) (zstd !) |
811 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !) |
797 searching for changes |
812 searching for changes |
798 no changes found |
813 no changes found |
799 updating to branch default |
814 updating to branch default |
800 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved |
815 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved |
801 $ hg -R phase-no-publish phase -r 'all()' |
816 $ hg -R phase-no-publish phase -r 'all()' |
802 0: public |
817 0: public |
803 1: public |
818 1: public |
804 2: public |
819 2: public |
805 #endif |
820 #endif |
806 #if stream-bundle2 |
821 #if stream-bundle2 |
807 $ hg clone --stream http://localhost:$HGPORT phase-no-publish |
822 $ hg clone --stream http://localhost:$HGPORT phase-no-publish |
808 streaming all changes |
823 streaming all changes |
809 1096 files to transfer, 102 KB of data (no-zstd !) |
824 1097 files to transfer, 102 KB of data (no-zstd !) |
810 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
825 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
811 1096 files to transfer, 98.8 KB of data (zstd !) |
826 1097 files to transfer, 99.1 KB of data (zstd !) |
812 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !) |
827 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd !) |
813 updating to branch default |
828 updating to branch default |
814 1087 files updated, 0 files merged, 0 files removed, 0 files unresolved |
829 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved |
815 $ hg -R phase-no-publish phase -r 'all()' |
830 $ hg -R phase-no-publish phase -r 'all()' |
816 0: draft |
831 0: draft |
817 1: draft |
832 1: draft |
818 2: draft |
833 2: draft |
819 #endif |
834 #endif |
820 $ hg verify -R phase-no-publish |
835 $ hg verify -R phase-no-publish |
821 checking changesets |
836 checking changesets |
822 checking manifests |
837 checking manifests |
823 crosschecking files in changesets and manifests |
838 crosschecking files in changesets and manifests |
824 checking files |
839 checking files |
825 checked 3 changesets with 1087 changes to 1087 files |
840 checked 3 changesets with 1088 changes to 1088 files |
826 |
841 |
827 $ killdaemons.py |
842 $ killdaemons.py |
828 |
843 |
829 #if stream-legacy |
844 #if stream-legacy |
830 |
845 |
859 $ cat hg.pid > $DAEMON_PIDS |
874 $ cat hg.pid > $DAEMON_PIDS |
860 $ cd .. |
875 $ cd .. |
861 |
876 |
862 $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence |
877 $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence |
863 streaming all changes |
878 streaming all changes |
864 1097 files to transfer, 102 KB of data (no-zstd !) |
879 1098 files to transfer, 102 KB of data (no-zstd !) |
865 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
880 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
866 1097 files to transfer, 99.2 KB of data (zstd !) |
881 1098 files to transfer, 99.5 KB of data (zstd !) |
867 transferred 99.2 KB in * seconds (* */sec) (glob) (zstd !) |
882 transferred 99.5 KB in * seconds (* */sec) (glob) (zstd !) |
868 $ hg -R with-obsolescence log -T '{rev}: {phase}\n' |
883 $ hg -R with-obsolescence log -T '{rev}: {phase}\n' |
869 2: draft |
884 2: draft |
870 1: draft |
885 1: draft |
871 0: draft |
886 0: draft |
872 $ hg debugobsolete -R with-obsolescence |
887 $ hg debugobsolete -R with-obsolescence |
873 e53e122156df12330d3a0b72351e3a84bfd14195 0 {42e820400e843bc479ad36068ff772a69c8affe9} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
888 8c206a663911c1f97f2f9d7382e417ae55872cfa 0 {5223b5e3265f0df40bb743da62249413d74ac70f} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
874 $ hg verify -R with-obsolescence |
889 $ hg verify -R with-obsolescence |
875 checking changesets |
890 checking changesets |
876 checking manifests |
891 checking manifests |
877 crosschecking files in changesets and manifests |
892 crosschecking files in changesets and manifests |
878 checking files |
893 checking files |
879 checked 4 changesets with 1088 changes to 1087 files |
894 checked 4 changesets with 1089 changes to 1088 files |
880 |
895 |
881 $ hg clone -U --stream --config experimental.evolution=0 http://localhost:$HGPORT with-obsolescence-no-evolution |
896 $ hg clone -U --stream --config experimental.evolution=0 http://localhost:$HGPORT with-obsolescence-no-evolution |
882 streaming all changes |
897 streaming all changes |
883 remote: abort: server has obsolescence markers, but client cannot receive them via stream clone |
898 remote: abort: server has obsolescence markers, but client cannot receive them via stream clone |
884 abort: pull failed on remote |
899 abort: pull failed on remote |