Mercurial > hg-stable
comparison tests/test-rebase-collapse.t @ 23517:4f18e80d9c30
rebase: show more useful status information while rebasing
Show status messages while rebasing, similar to what graft do:
rebasing 12:2647734878ef "fork" (tip)
This gives more context for the user when resolving conflicts.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 09 Dec 2014 03:45:26 +0100 |
parents | 328afbad6e57 |
children | 2fb0504b8175 |
comparison
equal
deleted
inserted
replaced
23516:328afbad6e57 | 23517:4f18e80d9c30 |
---|---|
57 > cat \$1 | 57 > cat \$1 |
58 > echo "====" | 58 > echo "====" |
59 > echo "edited manually" >> \$1 | 59 > echo "edited manually" >> \$1 |
60 > EOF | 60 > EOF |
61 $ HGEDITOR="sh $TESTTMP/editor.sh" hg rebase --collapse --keepbranches -e | 61 $ HGEDITOR="sh $TESTTMP/editor.sh" hg rebase --collapse --keepbranches -e |
62 rebasing 1:42ccdea3bb16 "B" | |
63 rebasing 2:5fddd98957c8 "C" | |
64 rebasing 3:32af7686d403 "D" | |
62 ==== before editing | 65 ==== before editing |
63 Collapsed revision | 66 Collapsed revision |
64 * B | 67 * B |
65 * C | 68 * C |
66 * D | 69 * D |
111 $ hg clone -q -u . a a2 | 114 $ hg clone -q -u . a a2 |
112 $ cd a2 | 115 $ cd a2 |
113 | 116 |
114 $ hg phase --force --secret 6 | 117 $ hg phase --force --secret 6 |
115 $ hg rebase --source 4 --collapse | 118 $ hg rebase --source 4 --collapse |
119 rebasing 4:9520eea781bc "E" | |
120 rebasing 6:eea13746799a "G" | |
116 saved backup bundle to $TESTTMP/a2/.hg/strip-backup/9520eea781bc-backup.hg (glob) | 121 saved backup bundle to $TESTTMP/a2/.hg/strip-backup/9520eea781bc-backup.hg (glob) |
117 | 122 |
118 $ hg tglog | 123 $ hg tglog |
119 o 6: 'Collapsed revision | 124 o 6: 'Collapsed revision |
120 | * E | 125 | * E |
151 $ cat > $TESTTMP/checkeditform.sh <<EOF | 156 $ cat > $TESTTMP/checkeditform.sh <<EOF |
152 > env | grep HGEDITFORM | 157 > env | grep HGEDITFORM |
153 > true | 158 > true |
154 > EOF | 159 > EOF |
155 $ HGEDITOR="sh $TESTTMP/checkeditform.sh" hg rebase --source 4 --collapse -m 'custom message' -e | 160 $ HGEDITOR="sh $TESTTMP/checkeditform.sh" hg rebase --source 4 --collapse -m 'custom message' -e |
161 rebasing 4:9520eea781bc "E" | |
162 rebasing 6:eea13746799a "G" | |
156 HGEDITFORM=rebase.collapse | 163 HGEDITFORM=rebase.collapse |
157 saved backup bundle to $TESTTMP/a3/.hg/strip-backup/9520eea781bc-backup.hg (glob) | 164 saved backup bundle to $TESTTMP/a3/.hg/strip-backup/9520eea781bc-backup.hg (glob) |
158 | 165 |
159 $ hg tglog | 166 $ hg tglog |
160 o 6: 'custom message' | 167 o 6: 'custom message' |
259 [255] | 266 [255] |
260 | 267 |
261 Rebase and collapse - E onto H: | 268 Rebase and collapse - E onto H: |
262 | 269 |
263 $ hg rebase -s 4 --collapse # root (4) is not a merge | 270 $ hg rebase -s 4 --collapse # root (4) is not a merge |
271 rebasing 4:8a5212ebc852 "E" | |
272 rebasing 5:7f219660301f "F" | |
273 rebasing 6:c772a8b2dc17 "G" | |
264 saved backup bundle to $TESTTMP/b1/.hg/strip-backup/8a5212ebc852-backup.hg (glob) | 274 saved backup bundle to $TESTTMP/b1/.hg/strip-backup/8a5212ebc852-backup.hg (glob) |
265 | 275 |
266 $ hg tglog | 276 $ hg tglog |
267 o 5: 'Collapsed revision | 277 o 5: 'Collapsed revision |
268 |\ * E | 278 |\ * E |
407 | 417 |
408 $ hg clone -q -u . c c1 | 418 $ hg clone -q -u . c c1 |
409 $ cd c1 | 419 $ cd c1 |
410 | 420 |
411 $ hg rebase -s 4 --collapse # root (4) is not a merge | 421 $ hg rebase -s 4 --collapse # root (4) is not a merge |
422 rebasing 4:8a5212ebc852 "E" | |
423 rebasing 5:dca5924bb570 "F" | |
412 merging E | 424 merging E |
425 rebasing 6:55a44ad28289 "G" | |
426 rebasing 7:417d3b648079 "H" | |
413 saved backup bundle to $TESTTMP/c1/.hg/strip-backup/8a5212ebc852-backup.hg (glob) | 427 saved backup bundle to $TESTTMP/c1/.hg/strip-backup/8a5212ebc852-backup.hg (glob) |
414 | 428 |
415 $ hg tglog | 429 $ hg tglog |
416 o 5: 'Collapsed revision | 430 o 5: 'Collapsed revision |
417 |\ * E | 431 |\ * E |
497 | 511 |
498 $ hg clone -q -u . d d1 | 512 $ hg clone -q -u . d d1 |
499 $ cd d1 | 513 $ cd d1 |
500 | 514 |
501 $ hg rebase -s 1 --collapse | 515 $ hg rebase -s 1 --collapse |
516 rebasing 1:27547f69f254 "B" | |
517 rebasing 2:f838bfaca5c7 "C" | |
518 rebasing 3:7bbcd6078bcc "D" | |
519 rebasing 4:0a42590ed746 "E" | |
502 saved backup bundle to $TESTTMP/d1/.hg/strip-backup/27547f69f254-backup.hg (glob) | 520 saved backup bundle to $TESTTMP/d1/.hg/strip-backup/27547f69f254-backup.hg (glob) |
503 | 521 |
504 $ hg tglog | 522 $ hg tglog |
505 o 2: 'Collapsed revision | 523 o 2: 'Collapsed revision |
506 | * B | 524 | * B |
581 | o 1: 'B' one | 599 | o 1: 'B' one |
582 |/ | 600 |/ |
583 o 0: 'A' | 601 o 0: 'A' |
584 | 602 |
585 $ hg rebase -s 5 -d 4 | 603 $ hg rebase -s 5 -d 4 |
604 rebasing 5:fbfb97b1089a "E" (tip) | |
586 saved backup bundle to $TESTTMP/e/.hg/strip-backup/fbfb97b1089a-backup.hg (glob) | 605 saved backup bundle to $TESTTMP/e/.hg/strip-backup/fbfb97b1089a-backup.hg (glob) |
587 $ hg tglog | 606 $ hg tglog |
588 @ 4: 'E' | 607 @ 4: 'E' |
589 | | 608 | |
590 o 3: 'D' | 609 o 3: 'D' |
632 | o 1: 'change' | 651 | o 1: 'change' |
633 |/ | 652 |/ |
634 o 0: 'add' | 653 o 0: 'add' |
635 | 654 |
636 $ hg rebase --collapse -d 1 | 655 $ hg rebase --collapse -d 1 |
656 rebasing 2:6e7340ee38c0 "move1" | |
637 merging a and d to d | 657 merging a and d to d |
638 merging b and e to e | 658 merging b and e to e |
639 merging c and f to f | 659 merging c and f to f |
660 rebasing 3:338e84e2e558 "move2" (tip) | |
640 merging f and c to c | 661 merging f and c to c |
641 merging e and g to g | 662 merging e and g to g |
642 saved backup bundle to $TESTTMP/copies/.hg/strip-backup/6e7340ee38c0-backup.hg (glob) | 663 saved backup bundle to $TESTTMP/copies/.hg/strip-backup/6e7340ee38c0-backup.hg (glob) |
643 $ hg st | 664 $ hg st |
644 $ hg st --copies --change tip | 665 $ hg st --copies --change tip |
676 [255] | 697 [255] |
677 | 698 |
678 Test collapsing in place | 699 Test collapsing in place |
679 | 700 |
680 $ hg rebase --collapse -b . -d 0 | 701 $ hg rebase --collapse -b . -d 0 |
702 rebasing 1:1352765a01d4 "change" | |
703 rebasing 2:64b456429f67 "Collapsed revision" (tip) | |
681 saved backup bundle to $TESTTMP/copies/.hg/strip-backup/1352765a01d4-backup.hg (glob) | 704 saved backup bundle to $TESTTMP/copies/.hg/strip-backup/1352765a01d4-backup.hg (glob) |
682 $ hg st --change tip --copies | 705 $ hg st --change tip --copies |
683 M a | 706 M a |
684 M c | 707 M c |
685 A d | 708 A d |
766 $ touch b | 789 $ touch b |
767 $ hg commit -Am b | 790 $ hg commit -Am b |
768 adding b | 791 adding b |
769 $ hg book foo | 792 $ hg book foo |
770 $ hg rebase -d 0 -r "1::2" --collapse -m collapsed | 793 $ hg rebase -d 0 -r "1::2" --collapse -m collapsed |
794 rebasing 1:6d8d9f24eec3 "a" | |
795 rebasing 2:1cc73eca5ecc "b" (tip foo) | |
771 saved backup bundle to $TESTTMP/collapseaddremove/.hg/strip-backup/6d8d9f24eec3-backup.hg (glob) | 796 saved backup bundle to $TESTTMP/collapseaddremove/.hg/strip-backup/6d8d9f24eec3-backup.hg (glob) |
772 $ hg log -G --template "{rev}: '{desc}' {bookmarks}" | 797 $ hg log -G --template "{rev}: '{desc}' {bookmarks}" |
773 @ 1: 'collapsed' foo | 798 @ 1: 'collapsed' foo |
774 | | 799 | |
775 o 0: 'base' | 800 o 0: 'base' |