265 Case with some of the topic unstable |
265 Case with some of the topic unstable |
266 ------------------------------------ |
266 ------------------------------------ |
267 |
267 |
268 $ echo bbb > ddd |
268 $ echo bbb > ddd |
269 $ hg commit --amend |
269 $ hg commit --amend |
270 2 new orphan changesets |
|
271 $ hg log -G |
270 $ hg log -G |
272 @ 6 default {foo} draft c_d |
271 @ 6 default {foo} draft c_d |
273 | |
272 | |
274 | * 5 default {foo} draft c_f |
273 | o 5 default {foo} draft c_f |
275 | | |
274 | | |
276 | * 4 default {foo} draft c_e |
275 | o 4 default {foo} draft c_e |
277 | | |
276 | | |
278 | x 3 default {foo} draft c_d |
277 | x 3 default {foo} draft c_d |
279 |/ |
278 |/ |
280 o 2 default {foo} draft c_c |
279 o 2 default {foo} draft c_c |
281 | |
280 | |
400 |
399 |
401 $ hg up 'desc(c_d)' |
400 $ hg up 'desc(c_d)' |
402 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
401 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
403 $ echo ccc > ddd |
402 $ echo ccc > ddd |
404 $ hg commit --amend -m 'c_D' |
403 $ hg commit --amend -m 'c_D' |
405 4 new orphan changesets |
|
406 $ hg rebase -d . -s 'desc(c_g)' |
404 $ hg rebase -d . -s 'desc(c_g)' |
407 rebasing 9:81264ae8a36a "c_g" (foo) |
405 rebasing 9:81264ae8a36a "c_g" (foo) |
408 rebasing 10:fde5f5941642 "c_h" (foo) |
406 rebasing 10:fde5f5941642 "c_h" (foo) |
409 $ hg log -G |
407 $ hg log -G |
410 o 13 default {foo} draft c_h |
408 o 13 default {foo} draft c_h |
411 | |
409 | |
412 o 12 default {foo} draft c_g |
410 o 12 default {foo} draft c_g |
413 | |
411 | |
414 @ 11 default {foo} draft c_D |
412 @ 11 default {foo} draft c_D |
415 | |
413 | |
416 | * 8 default {foo} draft c_f |
414 | o 8 default {foo} draft c_f |
417 | | |
415 | | |
418 | * 7 default {foo} draft c_e |
416 | o 7 default {foo} draft c_e |
419 | | |
417 | | |
420 | x 6 default {foo} draft c_d |
418 | x 6 default {foo} draft c_d |
421 |/ |
419 |/ |
422 o 2 default {foo} draft c_c |
420 o 2 default {foo} draft c_c |
423 | |
421 | |
454 | |
452 | |
455 o 12 default {foo} draft c_g |
453 o 12 default {foo} draft c_g |
456 | |
454 | |
457 @ 11 default {foo} draft c_D |
455 @ 11 default {foo} draft c_D |
458 | |
456 | |
459 | * 8 default {foo} draft c_f |
457 | o 8 default {foo} draft c_f |
460 | | |
458 | | |
461 | * 7 default {foo} draft c_e |
459 | o 7 default {foo} draft c_e |
462 | | |
460 | | |
463 | x 6 default {foo} draft c_d |
461 | x 6 default {foo} draft c_d |
464 |/ |
462 |/ |
465 o 2 default {foo} draft c_c |
463 o 2 default {foo} draft c_c |
466 | |
464 | |
491 o 0 default {} public c_a |
489 o 0 default {} public c_a |
492 |
490 |
493 Changing topics on some commits in between |
491 Changing topics on some commits in between |
494 $ hg topic foobar -r 'desc(c_e) + desc(c_D)' |
492 $ hg topic foobar -r 'desc(c_e) + desc(c_D)' |
495 switching to topic foobar |
493 switching to topic foobar |
496 4 new orphan changesets |
|
497 changed topic on 2 changes |
494 changed topic on 2 changes |
498 $ hg log -G |
495 $ hg log -G |
499 @ 17 default {foobar} draft c_D |
496 @ 17 default {foobar} draft c_D |
500 | |
497 | |
501 | * 16 default {foobar} draft c_e |
498 | o 16 default {foobar} draft c_e |
502 | | |
499 | | |
503 | | * 15 default {foo} draft c_f |
500 | | o 15 default {foo} draft c_f |
504 | | | |
501 | | | |
505 | | x 14 default {foo} draft c_e |
502 | | x 14 default {foo} draft c_e |
506 | |/ |
503 | |/ |
507 | * 13 default {foo} draft c_h |
504 | o 13 default {foo} draft c_h |
508 | | |
505 | | |
509 | * 12 default {foo} draft c_g |
506 | o 12 default {foo} draft c_g |
510 | | |
507 | | |
511 | x 11 default {foo} draft c_D |
508 | x 11 default {foo} draft c_D |
512 |/ |
509 |/ |
513 o 2 default {foo} draft c_c |
510 o 2 default {foo} draft c_c |
514 | |
511 | |
517 o 0 default {} public c_a |
514 o 0 default {} public c_a |
518 |
515 |
519 $ hg rebase -s 'desc("c_f") - obsolete()' -d 'desc("c_e") - obsolete()' |
516 $ hg rebase -s 'desc("c_f") - obsolete()' -d 'desc("c_e") - obsolete()' |
520 rebasing 15:77082e55de88 "c_f" (foo) |
517 rebasing 15:77082e55de88 "c_f" (foo) |
521 switching to topic foo |
518 switching to topic foo |
522 1 new orphan changesets |
|
523 switching to topic foobar |
519 switching to topic foobar |
524 $ hg rebase -s 'desc("c_g") - obsolete()' -d 'desc("c_D") - obsolete()' |
520 $ hg rebase -s 'desc("c_g") - obsolete()' -d 'desc("c_D") - obsolete()' |
525 rebasing 12:0c3e8aed985d "c_g" (foo) |
521 rebasing 12:0c3e8aed985d "c_g" (foo) |
526 switching to topic foo |
522 switching to topic foo |
527 rebasing 13:b9e4f3709bc5 "c_h" (foo) |
523 rebasing 13:b9e4f3709bc5 "c_h" (foo) |
671 |
667 |
672 $ hg up 'desc("c_B")' |
668 $ hg up 'desc("c_B")' |
673 switching to topic red |
669 switching to topic red |
674 0 files updated, 0 files merged, 6 files removed, 0 files unresolved |
670 0 files updated, 0 files merged, 6 files removed, 0 files unresolved |
675 $ hg commit --amend --user test2 |
671 $ hg commit --amend --user test2 |
676 7 new orphan changesets |
|
677 $ hg up 'desc("c_C")' |
672 $ hg up 'desc("c_C")' |
678 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
673 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
679 $ hg commit --amend --user test2 |
674 $ hg commit --amend --user test2 |
680 $ hg up 'desc("c_D")' |
675 $ hg up 'desc("c_D")' |
681 switching to topic blue |
676 switching to topic blue |
683 $ hg commit --amend --user test2 |
678 $ hg commit --amend --user test2 |
684 |
679 |
685 $ hg log -G --rev 'sort(all(), "topo")' |
680 $ hg log -G --rev 'sort(all(), "topo")' |
686 @ 11 default {blue} draft c_D |
681 @ 11 default {blue} draft c_D |
687 | |
682 | |
688 | * 8 default {blue} draft c_I |
683 | o 8 default {blue} draft c_I |
689 | | |
684 | | |
690 | * 7 default {red} draft c_H |
685 | o 7 default {red} draft c_H |
691 | |\ |
686 | |\ |
692 | | * 6 default {blue} draft c_G |
687 | | o 6 default {blue} draft c_G |
693 | | | |
688 | | | |
694 | | * 5 default {red} draft c_F |
689 | | o 5 default {red} draft c_F |
695 | | | |
690 | | | |
696 | | * 4 default {red} draft c_E |
691 | | o 4 default {red} draft c_E |
697 | | | |
692 | | | |
698 | x | 3 default {blue} draft c_D |
693 | x | 3 default {blue} draft c_D |
699 |/ / |
694 |/ / |
700 x / 2 default {red} draft c_C |
695 x / 2 default {red} draft c_C |
701 |/ |
696 |/ |
702 | * 10 default {red} draft c_C |
697 | o 10 default {red} draft c_C |
703 |/ |
698 |/ |
704 x 1 default {red} draft c_B |
699 x 1 default {red} draft c_B |
705 | |
700 | |
706 | o 9 default {red} draft c_B |
701 | o 9 default {red} draft c_B |
707 |/ |
702 |/ |
753 $ hg commit --amend --user test3 |
748 $ hg commit --amend --user test3 |
754 |
749 |
755 $ hg log -G --rev 'sort(all(), "topo")' |
750 $ hg log -G --rev 'sort(all(), "topo")' |
756 @ 16 default {blue} draft c_D |
751 @ 16 default {blue} draft c_D |
757 | |
752 | |
758 | * 13 default {blue} draft c_G |
753 | o 13 default {blue} draft c_G |
759 | | |
754 | | |
760 | | * 12 default {red} draft c_H |
755 | | o 12 default {red} draft c_H |
761 | | |\ |
756 | | |\ |
762 | | | | * 8 default {blue} draft c_I |
757 | | | | o 8 default {blue} draft c_I |
763 | | | | | |
758 | | | | | |
764 | | +---x 7 default {red} draft c_H |
759 | | +---x 7 default {red} draft c_H |
765 | | | |/ |
760 | | | |/ |
766 | +---x 6 default {blue} draft c_G |
761 | +---x 6 default {blue} draft c_G |
767 | | | |
762 | | | |
768 | * | 5 default {red} draft c_F |
763 | o | 5 default {red} draft c_F |
769 | | | |
764 | | | |
770 | * | 4 default {red} draft c_E |
765 | o | 4 default {red} draft c_E |
771 | | | |
766 | | | |
772 +---x 3 default {blue} draft c_D |
767 +---x 3 default {blue} draft c_D |
773 | | |
768 | | |
774 x | 2 default {red} draft c_C |
769 x | 2 default {red} draft c_C |
775 |/ |
770 |/ |
776 | * 15 default {red} draft c_C |
771 | o 15 default {red} draft c_C |
777 |/ |
772 |/ |
778 x 1 default {red} draft c_B |
773 x 1 default {red} draft c_B |
779 | |
774 | |
780 | o 14 default {red} draft c_B |
775 | o 14 default {red} draft c_B |
781 |/ |
776 |/ |
875 |/ |
869 |/ |
876 x b24bab30ac12 (20) c_G |
870 x b24bab30ac12 (20) c_G |
877 | rewritten(parent, content) as dde94df880e9, e7ea874afbd5 using split by test (Thu Jan 01 00:00:00 1970 +0000) |
871 | rewritten(parent, content) as dde94df880e9, e7ea874afbd5 using split by test (Thu Jan 01 00:00:00 1970 +0000) |
878 | |
872 | |
879 x 907f7d3c2333 (18) c_G |
873 x 907f7d3c2333 (18) c_G |
880 | rewritten(content) as b24bab30ac12 using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
874 | rewritten as b24bab30ac12 using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
881 | |
875 | |
882 x 3ab2eedae500 (13) c_G |
876 x 3ab2eedae500 (13) c_G |
883 | rewritten(parent) as 907f7d3c2333 using rebase by test (Thu Jan 01 00:00:00 1970 +0000) |
877 | rewritten as 907f7d3c2333 using rebase by test (Thu Jan 01 00:00:00 1970 +0000) |
884 | |
878 | |
885 x c7d60a180d05 (6) c_G |
879 x c7d60a180d05 (6) c_G |
886 rewritten(user) as 3ab2eedae500 using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
880 rewritten as 3ab2eedae500 using amend by test (Thu Jan 01 00:00:00 1970 +0000) |
887 |
881 |
888 $ hg export . |
882 $ hg export . |
889 # HG changeset patch |
883 # HG changeset patch |
890 # User test3 |
884 # User test3 |
891 # Date 0 0 |
885 # Date 0 0 |