Show More
@@ -508,19 +508,21 b' make stream v1 unsuitable for non-publis' | |||||
508 |
|
508 | |||
509 | $ killdaemons.py |
|
509 | $ killdaemons.py | |
510 |
|
510 | |||
|
511 | ||||
|
512 | Stream repository with obsolescence | |||
|
513 | ----------------------------------- | |||
|
514 | ||||
511 | #if stream-legacy |
|
515 | #if stream-legacy | |
512 |
|
516 | |||
513 | With v1 of the stream protocol, changeset are always cloned as public. There's |
|
517 | With v1 of the stream protocol, changeset are always cloned as public. There's | |
514 | no obsolescence markers exchange in stream v1. |
|
518 | no obsolescence markers exchange in stream v1. | |
515 |
|
519 | |||
516 | #endif |
|
520 | #else | |
517 | #if stream-bundle2-v2 |
|
|||
518 |
|
||||
519 | Stream repository with obsolescence |
|
|||
520 | ----------------------------------- |
|
|||
521 |
|
521 | |||
522 | Clone non-publishing with obsolescence |
|
522 | Clone non-publishing with obsolescence | |
523 |
|
523 | |||
|
524 | The obsstore file should be send as part of the stream bundle | |||
|
525 | ||||
524 | $ cat >> $HGRCPATH << EOF |
|
526 | $ cat >> $HGRCPATH << EOF | |
525 | > [experimental] |
|
527 | > [experimental] | |
526 | > evolution=all |
|
528 | > evolution=all | |
@@ -543,62 +545,10 b' Clone non-publishing with obsolescence' | |||||
543 |
|
545 | |||
544 | $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence |
|
546 | $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence | |
545 | streaming all changes |
|
547 | streaming all changes | |
546 |
1099 files to transfer, |
|
548 | 1099 files to transfer, * KB of data (glob) (stream-bundle2-v2 no-rust !) | |
547 | transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
|
549 | 1101 files to transfer, * KB of data (glob) (stream-bundle2-v2 rust !) | |
548 | 1099 files to transfer, 99.5 KB of data (zstd no-rust !) |
|
550 | 1098 entries to transfer (no-stream-bundle2-v2 !) | |
549 |
transferred |
|
551 | transferred * KB in * seconds (* */sec) (glob) | |
550 | 1101 files to transfer, 99.6 KB of data (zstd rust !) |
|
|||
551 | transferred 99.6 KB in * seconds (* */sec) (glob) (zstd rust !) |
|
|||
552 | $ hg -R with-obsolescence log -T '{rev}: {phase}\n' |
|
|||
553 | 2: draft |
|
|||
554 | 1: draft |
|
|||
555 | 0: draft |
|
|||
556 | $ hg debugobsolete -R with-obsolescence |
|
|||
557 | 8c206a663911c1f97f2f9d7382e417ae55872cfa 0 {5223b5e3265f0df40bb743da62249413d74ac70f} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
|||
558 | $ hg verify -R with-obsolescence -q |
|
|||
559 |
|
||||
560 | $ hg clone -U --stream --config experimental.evolution=0 http://localhost:$HGPORT with-obsolescence-no-evolution |
|
|||
561 | streaming all changes |
|
|||
562 | remote: abort: server has obsolescence markers, but client cannot receive them via stream clone |
|
|||
563 | abort: pull failed on remote |
|
|||
564 | [100] |
|
|||
565 |
|
||||
566 | $ killdaemons.py |
|
|||
567 |
|
||||
568 | #endif |
|
|||
569 | #if stream-bundle2-v3 |
|
|||
570 |
|
||||
571 | Stream repository with obsolescence |
|
|||
572 | ----------------------------------- |
|
|||
573 |
|
||||
574 | Clone non-publishing with obsolescence |
|
|||
575 |
|
||||
576 | $ cat >> $HGRCPATH << EOF |
|
|||
577 | > [experimental] |
|
|||
578 | > evolution=all |
|
|||
579 | > EOF |
|
|||
580 |
|
||||
581 | $ cd server |
|
|||
582 | $ echo foo > foo |
|
|||
583 | $ hg -q commit -m 'about to be pruned' |
|
|||
584 | $ hg debugobsolete `hg log -r . -T '{node}'` -d '0 0' -u test --record-parents |
|
|||
585 | 1 new obsolescence markers |
|
|||
586 | obsoleted 1 changesets |
|
|||
587 | $ hg up null -q |
|
|||
588 | $ hg log -T '{rev}: {phase}\n' |
|
|||
589 | 2: draft |
|
|||
590 | 1: draft |
|
|||
591 | 0: draft |
|
|||
592 | $ hg serve -p $HGPORT -d --pid-file=hg.pid |
|
|||
593 | $ cat hg.pid > $DAEMON_PIDS |
|
|||
594 | $ cd .. |
|
|||
595 |
|
||||
596 | $ hg clone -U --stream http://localhost:$HGPORT with-obsolescence |
|
|||
597 | streaming all changes |
|
|||
598 | 1098 entries to transfer |
|
|||
599 | transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) |
|
|||
600 | transferred 99.5 KB in * seconds (* */sec) (glob) (zstd no-rust !) |
|
|||
601 | transferred 99.6 KB in * seconds (* */sec) (glob) (zstd rust !) |
|
|||
602 |
$ |
|
552 | $ hg -R with-obsolescence log -T '{rev}: {phase}\n' | |
603 | 2: draft |
|
553 | 2: draft | |
604 | 1: draft |
|
554 | 1: draft |
General Comments 0
You need to be logged in to leave comments.
Login now