##// 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 Stream repository with phases
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 Clone as publishing
451 Clone as publishing
449
452
450 $ hg -R server phase -r 'all()'
453 $ hg -R server phase -r 'all()'
@@ -452,40 +455,17 b' Clone as publishing'
452 1: draft
455 1: draft
453 2: draft
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 $ hg clone --stream http://localhost:$HGPORT phase-publish
458 $ hg clone --stream http://localhost:$HGPORT phase-publish
469 streaming all changes
459 streaming all changes
470 1097 files to transfer, 102 KB of data (no-zstd !)
460 1091 files to transfer, * KB of data (glob) (stream-legacy !)
471 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
461 1097 files to transfer, * KB of data (glob) (stream-bundle2-v2 no-rust !)
472 1097 files to transfer, 99.1 KB of data (zstd no-rust !)
462 1099 files to transfer, * KB of data (glob) (stream-bundle2-v2 rust !)
473 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd no-rust !)
463 1096 entries to transfer (stream-bundle2-v3 !)
474 1099 files to transfer, 99.2 KB of data (zstd rust !)
464 transferred * KB in * seconds (* */sec) (glob)
475 transferred 99.2 KB in * seconds (* */sec) (glob) (zstd rust !)
465 searching for changes (stream-legacy !)
466 no changes found (stream-legacy !)
476 updating to branch default
467 updating to branch default
477 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
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 $ hg verify -R phase-publish -q
469 $ hg verify -R phase-publish -q
490 $ hg -R phase-publish phase -r 'all()'
470 $ hg -R phase-publish phase -r 'all()'
491 0: public
471 0: public
@@ -502,56 +482,28 b' Clone as non publishing'
502 $ hg -R server serve -p $HGPORT -d --pid-file=hg.pid
482 $ hg -R server serve -p $HGPORT -d --pid-file=hg.pid
503 $ cat hg.pid > $DAEMON_PIDS
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 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
485 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
527 streaming all changes
486 streaming all changes
528 1098 files to transfer, 102 KB of data (no-zstd !)
487 1091 files to transfer, * KB of data (glob) (stream-legacy !)
529 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
488 1098 files to transfer, * KB of data (glob) (stream-bundle2-v2 no-rust !)
530 1098 files to transfer, 99.1 KB of data (zstd no-rust !)
489 1100 files to transfer, * KB of data (glob) (stream-bundle2-v2 rust !)
531 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd no-rust !)
490 1097 entries to transfer (stream-bundle2-v3 !)
532 1100 files to transfer, 99.2 KB of data (zstd rust !)
491 transferred * KB in * seconds (* */sec) (glob)
533 transferred 99.2 KB in * seconds (* */sec) (glob) (zstd rust !)
492 searching for changes (stream-legacy !)
493 no changes found (stream-legacy !)
534 updating to branch default
494 updating to branch default
535 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
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 $ hg -R phase-no-publish phase -r 'all()'
500 $ hg -R phase-no-publish phase -r 'all()'
537 0: draft
501 0: public (stream-legacy !)
538 1: draft
502 1: public (stream-legacy !)
539 2: draft
503 2: public (stream-legacy !)
540 #endif
504 0: draft (no-stream-legacy !)
541 #if stream-bundle2-v3
505 1: draft (no-stream-legacy !)
542 $ hg clone --stream http://localhost:$HGPORT phase-no-publish
506 2: draft (no-stream-legacy !)
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
555 $ hg verify -R phase-no-publish -q
507 $ hg verify -R phase-no-publish -q
556
508
557 $ killdaemons.py
509 $ killdaemons.py
General Comments 0
You need to be logged in to leave comments. Login now