Mercurial > evolve
comparison tests/test-topic-stack.t @ 5832:1f301a3062f5 mercurial-4.8
test-compat: merge mercurial-4.9 into mercurial-4.8
# no-check-commit
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 11 Mar 2021 14:42:51 +0800 |
parents | 98e87c181e0f 67fc03f42d92 |
children | 6b67f26f4667 |
comparison
equal
deleted
inserted
replaced
5765:98e87c181e0f | 5832:1f301a3062f5 |
---|---|
64 s1: c_a | 64 s1: c_a |
65 $ hg phase --public 'topic("other")' | 65 $ hg phase --public 'topic("other")' |
66 active topic 'other' is now empty | 66 active topic 'other' is now empty |
67 (use 'hg topic --clear' to clear it if needed) | 67 (use 'hg topic --clear' to clear it if needed) |
68 | 68 |
69 After changing the phase of all the changesets in "other" to public, the topic should still be active, but is empty. We should be better at informating the user about it and displaying good data in this case. | 69 After changing the phase of all the changesets in "other" to public, the topic should still be active, but is empty. We should be better at informing the user about it and displaying good data in this case. |
70 | 70 |
71 $ hg topic | 71 $ hg topic |
72 foo (4 changesets) | 72 foo (4 changesets) |
73 * other (0 changesets) | 73 * other (0 changesets) |
74 $ hg stack | 74 $ hg stack |
448 s3: c_e | 448 s3: c_e |
449 s2: c_d | 449 s2: c_d |
450 s1: c_c | 450 s1: c_c |
451 s0^ c_b (base) | 451 s0^ c_b (base) |
452 | 452 |
453 Case with multiple heads on the topic with unstability involved | 453 Case with multiple heads on the topic with instability involved |
454 --------------------------------------------------------------- | 454 --------------------------------------------------------------- |
455 | 455 |
456 We amend the message to make sure the display base pick the right changeset | 456 We amend the message to make sure the display base picks the right changeset |
457 | 457 |
458 $ hg up 'desc(c_d)' | 458 $ hg up 'desc(c_d)' |
459 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | 459 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
460 $ echo ccc > ddd | 460 $ echo ccc > ddd |
461 $ hg commit --amend -m 'c_D' | 461 $ hg commit --amend -m 'c_D' |
738 s0^ c_F (base) | 738 s0^ c_F (base) |
739 | 739 |
740 Even with some obsolete and orphan changesets | 740 Even with some obsolete and orphan changesets |
741 | 741 |
742 (the ordering of each branch of "blue" change because their hash change. we | 742 (the ordering of each branch of "blue" change because their hash change. we |
743 should stabilize this eventuelly) | 743 should stabilize this eventually) |
744 | 744 |
745 $ hg up 'desc("c_B")' | 745 $ hg up 'desc("c_B")' |
746 switching to topic red | 746 switching to topic red |
747 0 files updated, 0 files merged, 6 files removed, 0 files unresolved | 747 0 files updated, 0 files merged, 6 files removed, 0 files unresolved |
748 $ hg commit --amend --user test2 | 748 $ hg commit --amend --user test2 |
1002 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 | 1002 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
1003 +++ b/Z Thu Jan 01 00:00:00 1970 +0000 | 1003 +++ b/Z Thu Jan 01 00:00:00 1970 +0000 |
1004 @@ -0,0 +1,1 @@ | 1004 @@ -0,0 +1,1 @@ |
1005 +zzz | 1005 +zzz |
1006 | 1006 |
1007 Check that stack ouput still make sense | 1007 Check that stack output still makes sense |
1008 | 1008 |
1009 $ hg stack | 1009 $ hg stack |
1010 ### topic: blue | 1010 ### topic: blue |
1011 ### target: default (branch) | 1011 ### target: default (branch) |
1012 s4$ c_I (orphan) | 1012 s4$ c_I (orphan) |