##// END OF EJS Templates
stream-clone-test: simplify the case testing phases...
marmoute -
r52375:32631657 default
parent child Browse files
Show More
@@ -445,6 +445,9 b' clone it'
445 445 Stream repository with phases
446 446 -----------------------------
447 447
448 The file storing phases information (e.g. phaseroots) should be sent as part of
449 the stream bundle.
450
448 451 Clone as publishing
449 452
450 453 $ hg -R server phase -r 'all()'
@@ -452,40 +455,17 b' Clone as publishing'
452 455 1: draft
453 456 2: draft
454 457
455 #if stream-legacy
456 $ hg clone --stream http://localhost:$HGPORT phase-publish
457 streaming all changes
458 1091 files to transfer, 102 KB of data (no-zstd !)
459 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
460 1091 files to transfer, 98.8 KB of data (zstd !)
461 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
462 searching for changes
463 no changes found
464 updating to branch default
465 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
466 #endif
467 #if stream-bundle2-v2
468 458 $ hg clone --stream http://localhost:$HGPORT phase-publish
469 459 streaming all changes
470 1097 files to transfer, 102 KB of data (no-zstd !)
471 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
472 1097 files to transfer, 99.1 KB of data (zstd no-rust !)
473 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd no-rust !)
474 1099 files to transfer, 99.2 KB of data (zstd rust !)
475 transferred 99.2 KB in * seconds (* */sec) (glob) (zstd rust !)
460 1091 files to transfer, * KB of data (glob) (stream-legacy !)
461 1097 files to transfer, * KB of data (glob) (stream-bundle2-v2 no-rust !)
462 1099 files to transfer, * KB of data (glob) (stream-bundle2-v2 rust !)
463 1096 entries to transfer (stream-bundle2-v3 !)
464 transferred * KB in * seconds (* */sec) (glob)
465 searching for changes (stream-legacy !)
466 no changes found (stream-legacy !)
476 467 updating to branch default
477 468 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
478 #endif
479 #if stream-bundle2-v3
480 $ hg clone --stream http://localhost:$HGPORT phase-publish
481 streaming all changes
482 1096 entries to transfer
483 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
484 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd no-rust !)
485 transferred 99.2 KB in * seconds (* */sec) (glob) (zstd rust !)
486 updating to branch default
487 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
488 #endif
489 469 $ hg verify -R phase-publish -q
490 470 $ hg -R phase-publish phase -r 'all()'
491 471 0: public
@@ -502,56 +482,28 b' Clone as non publishing'
502 482 $ hg -R server serve -p $HGPORT -d --pid-file=hg.pid
503 483 $ cat hg.pid > $DAEMON_PIDS
504 484
505 #if stream-legacy
506
507 With v1 of the stream protocol, changeset are always cloned as public. It make
508 stream v1 unsuitable for non-publishing repository.
509
510 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
511 streaming all changes
512 1091 files to transfer, 102 KB of data (no-zstd !)
513 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
514 1091 files to transfer, 98.8 KB of data (zstd !)
515 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !)
516 searching for changes
517 no changes found
518 updating to branch default
519 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
520 $ hg -R phase-no-publish phase -r 'all()'
521 0: public
522 1: public
523 2: public
524 #endif
525 #if stream-bundle2-v2
526 485 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
527 486 streaming all changes
528 1098 files to transfer, 102 KB of data (no-zstd !)
529 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
530 1098 files to transfer, 99.1 KB of data (zstd no-rust !)
531 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd no-rust !)
532 1100 files to transfer, 99.2 KB of data (zstd rust !)
533 transferred 99.2 KB in * seconds (* */sec) (glob) (zstd rust !)
487 1091 files to transfer, * KB of data (glob) (stream-legacy !)
488 1098 files to transfer, * KB of data (glob) (stream-bundle2-v2 no-rust !)
489 1100 files to transfer, * KB of data (glob) (stream-bundle2-v2 rust !)
490 1097 entries to transfer (stream-bundle2-v3 !)
491 transferred * KB in * seconds (* */sec) (glob)
492 searching for changes (stream-legacy !)
493 no changes found (stream-legacy !)
534 494 updating to branch default
535 495 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
496
497 Note: With v1 of the stream protocol, changeset are always cloned as public. It
498 make stream v1 unsuitable for non-publishing repository.
499
536 500 $ hg -R phase-no-publish phase -r 'all()'
537 0: draft
538 1: draft
539 2: draft
540 #endif
541 #if stream-bundle2-v3
542 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
543 streaming all changes
544 1097 entries to transfer
545 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
546 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd no-rust !)
547 transferred 99.2 KB in * seconds (* */sec) (glob) (zstd rust !)
548 updating to branch default
549 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
550 $ hg -R phase-no-publish phase -r 'all()'
551 0: draft
552 1: draft
553 2: draft
554 #endif
501 0: public (stream-legacy !)
502 1: public (stream-legacy !)
503 2: public (stream-legacy !)
504 0: draft (no-stream-legacy !)
505 1: draft (no-stream-legacy !)
506 2: draft (no-stream-legacy !)
555 507 $ hg verify -R phase-no-publish -q
556 508
557 509 $ killdaemons.py
General Comments 0
You need to be logged in to leave comments. Login now