Mercurial > evolve
diff tests/test-topic-stack.t @ 4067:fb4801478d5d
stack: display 's#' instead of 't#' and 'b#'
If we want people to use it, we should display it.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 Sep 2018 17:07:36 +0200 |
parents | 1aa5f851d2c0 |
children | dc247e648f43 d5a2cc19903f 09337aae08d4 |
line wrap: on
line diff
--- a/tests/test-topic-stack.t Mon Sep 03 16:41:32 2018 +0200 +++ b/tests/test-topic-stack.t Mon Sep 03 17:07:36 2018 +0200 @@ -60,8 +60,8 @@ $ hg topic --list ### topic: other ### target: default (branch) - t2@ c_b (current) - t1: c_a + s2@ c_b (current) + s1: c_a $ hg phase --public 'topic("other")' active topic 'other' is now empty (use 'hg topic --clear' to clear it if needed) @@ -75,7 +75,7 @@ ### topic: other ### target: default (branch) (stack is empty) - t0^ c_b (base current) + s0^ c_b (base current) $ hg up foo switching to topic foo @@ -91,19 +91,19 @@ $ hg stack ### topic: foo ### target: default (branch) - t4@ c_f (current) - t3: c_e - t2: c_d - t1: c_c - t0^ c_b (base) + s4@ c_f (current) + s3: c_e + s2: c_d + s1: c_c + s0^ c_b (base) $ hg stack -v ### topic: foo ### target: default (branch) - t4(6559e6d93aea)@ c_f (current) - t3(0f9ac936c87d): c_e - t2(e629654d7050): c_d - t1(8522f9e3fee9): c_c - t0(ea705abc4f51)^ c_b (base) + s4(6559e6d93aea)@ c_f (current) + s3(0f9ac936c87d): c_e + s2(e629654d7050): c_d + s1(8522f9e3fee9): c_c + s0(ea705abc4f51)^ c_b (base) $ hg stack -Tjson | python -m json.tool [ { @@ -213,21 +213,21 @@ $ hg stack ### topic: foo ### target: default (branch) - t4@ c_f (current) - t3: c_e - t2: c_d - t1: c_c - t0^ c_b (base) + s4@ c_f (current) + s3: c_e + s2: c_d + s1: c_c + s0^ c_b (base) $ hg topics --config ui.strict=true * foo (4 changesets) $ hg stack --config ui.strict=true ### topic: foo ### target: default (branch) - t4@ c_f (current) - t3: c_e - t2: c_d - t1: c_c - t0^ c_b (base) + s4@ c_f (current) + s3: c_e + s2: c_d + s1: c_c + s0^ c_b (base) error case, nothing to list @@ -235,7 +235,7 @@ $ hg stack ### target: default (branch) (stack is empty) - b0^ c_f (base current) + s0^ c_f (base current) Test "t#" reference ------------------- @@ -287,29 +287,29 @@ $ hg topic --list ### topic: foo ### target: default (branch) - t4$ c_f (unstable) - t3$ c_e (unstable) - t2@ c_d (current) - t1: c_c - t0^ c_b (base) + s4$ c_f (unstable) + s3$ c_e (unstable) + s2@ c_d (current) + s1: c_c + s0^ c_b (base) $ hg up s3 2 files updated, 0 files merged, 0 files removed, 0 files unresolved $ hg topic --list ### topic: foo ### target: default (branch) - t4$ c_f (unstable) - t3$ c_e (current unstable) - t2: c_d - t1: c_c - t0^ c_b (base) + s4$ c_f (unstable) + s3$ c_e (current unstable) + s2: c_d + s1: c_c + s0^ c_b (base) $ hg topic --list --color=debug [topic.stack.summary.topic|### topic: [topic.active|foo]] [topic.stack.summary.branches|### target: default (branch)] - [topic.stack.index topic.stack.index.unstable|t4][topic.stack.state topic.stack.state.unstable|$] [topic.stack.desc topic.stack.desc.unstable|c_f][topic.stack.state topic.stack.state.unstable| (unstable)] - [topic.stack.index topic.stack.index.current topic.stack.index.unstable|t3][topic.stack.state topic.stack.state.current topic.stack.state.unstable|$] [topic.stack.desc topic.stack.desc.current topic.stack.desc.unstable|c_e][topic.stack.state topic.stack.state.current topic.stack.state.unstable| (current unstable)] - [topic.stack.index topic.stack.index.clean|t2][topic.stack.state topic.stack.state.clean|:] [topic.stack.desc topic.stack.desc.clean|c_d] - [topic.stack.index topic.stack.index.clean|t1][topic.stack.state topic.stack.state.clean|:] [topic.stack.desc topic.stack.desc.clean|c_c] - [topic.stack.index topic.stack.index.base|t0][topic.stack.state topic.stack.state.base|^] [topic.stack.desc topic.stack.desc.base|c_b][topic.stack.state topic.stack.state.base| (base)] + [topic.stack.index topic.stack.index.unstable|s4][topic.stack.state topic.stack.state.unstable|$] [topic.stack.desc topic.stack.desc.unstable|c_f][topic.stack.state topic.stack.state.unstable| (unstable)] + [topic.stack.index topic.stack.index.current topic.stack.index.unstable|s3][topic.stack.state topic.stack.state.current topic.stack.state.unstable|$] [topic.stack.desc topic.stack.desc.current topic.stack.desc.unstable|c_e][topic.stack.state topic.stack.state.current topic.stack.state.unstable| (current unstable)] + [topic.stack.index topic.stack.index.clean|s2][topic.stack.state topic.stack.state.clean|:] [topic.stack.desc topic.stack.desc.clean|c_d] + [topic.stack.index topic.stack.index.clean|s1][topic.stack.state topic.stack.state.clean|:] [topic.stack.desc topic.stack.desc.clean|c_c] + [topic.stack.index topic.stack.index.base|s0][topic.stack.state topic.stack.state.base|^] [topic.stack.desc topic.stack.desc.base|c_b][topic.stack.state topic.stack.state.base| (base)] $ hg up s2 1 files updated, 0 files merged, 1 files removed, 0 files unresolved @@ -385,14 +385,14 @@ $ hg top -l ### topic: foo (2 heads) ### target: default (branch) - t6@ c_h (current) - t5: c_g - t2^ c_d (base) - t4: c_f - t3: c_e - t2: c_d - t1: c_c - t0^ c_b (base) + s6@ c_h (current) + s5: c_g + s2^ c_d (base) + s4: c_f + s3: c_e + s2: c_d + s1: c_c + s0^ c_b (base) Case with multiple heads on the topic with unstability involved --------------------------------------------------------------- @@ -430,14 +430,14 @@ $ hg topic --list ### topic: foo (2 heads) ### target: default (branch) - t6: c_h - t5: c_g - t2^ c_D (base current) - t4$ c_f (unstable) - t3$ c_e (unstable) - t2@ c_D (current) - t1: c_c - t0^ c_b (base) + s6: c_h + s5: c_g + s2^ c_D (base current) + s4$ c_f (unstable) + s3$ c_e (unstable) + s2@ c_D (current) + s1: c_c + s0^ c_b (base) Trying to list non existing topic $ hg stack thisdoesnotexist @@ -556,21 +556,21 @@ $ hg stack ### topic: foobar ### target: default (branch), 3 behind - t2@ c_e (current) + s2@ c_e (current) ^ c_h - t1: c_D - t0^ c_c (base) + s1: c_D + s0^ c_c (base) $ hg stack foo ### topic: foo ### target: default (branch), ambiguous rebase destination - topic 'foo' has 3 heads - t4: c_f + s4: c_f ^ c_e - t3: c_h - t2: c_g + s3: c_h + s2: c_g ^ c_D - t1: c_c - t0^ c_b (base) + s1: c_c + s0^ c_b (base) case involving a merge ---------------------- @@ -646,24 +646,24 @@ $ hg stack red ### topic: red ### target: default (branch), 6 behind - t5: c_H + s5: c_H ^ c_G ^ c_D - t4: c_C - t1^ c_B (base) - t3: c_F - t2: c_E - t1: c_B - t0^ c_A (base) + s4: c_C + s1^ c_B (base) + s3: c_F + s2: c_E + s1: c_B + s0^ c_A (base) $ hg stack blue ### topic: blue ### target: default (branch), ambiguous rebase destination - topic 'blue' has 3 heads - t3@ c_I (current) + s3@ c_I (current) ^ c_H - t2: c_D + s2: c_D ^ c_C - t1: c_G - t0^ c_F (base) + s1: c_G + s0^ c_F (base) Even with some obsolete and orphan changesets @@ -712,24 +712,24 @@ $ hg stack red ### topic: red ### target: default (branch), ambiguous rebase destination - topic 'red' has 3 heads - t5$ c_H (unstable) + s5$ c_H (unstable) ^ c_G ^ c_D - t4$ c_C (unstable) - t1^ c_B (base) - t3$ c_F (unstable) - t2$ c_E (unstable) - t1: c_B - t0^ c_A (base) + s4$ c_C (unstable) + s1^ c_B (base) + s3$ c_F (unstable) + s2$ c_E (unstable) + s1: c_B + s0^ c_A (base) $ hg stack blue ### topic: blue ### target: default (branch), ambiguous rebase destination - topic 'blue' has 3 heads - t3$ c_I (unstable) + s3$ c_I (unstable) ^ c_H - t2$ c_G (unstable) + s2$ c_G (unstable) ^ c_F - t1$ c_D (current unstable) - t0^ c_C (base unstable) + s1$ c_D (current unstable) + s0^ c_C (base unstable) more obsolescence @@ -786,24 +786,24 @@ $ hg stack red ### topic: red ### target: default (branch), ambiguous rebase destination - topic 'red' has 3 heads - t5$ c_H (unstable) + s5$ c_H (unstable) ^ c_G ^ c_D - t4$ c_F (unstable) - t3$ c_E (unstable) - t1^ c_B (base) - t2$ c_C (unstable) - t1: c_B - t0^ c_A (base) + s4$ c_F (unstable) + s3$ c_E (unstable) + s1^ c_B (base) + s2$ c_C (unstable) + s1: c_B + s0^ c_A (base) $ hg stack blue ### topic: blue ### target: default (branch), ambiguous rebase destination - topic 'blue' has 3 heads - t3$ c_I (unstable) + s3$ c_I (unstable) ^ c_H - t2$ c_G (unstable) + s2$ c_G (unstable) ^ c_F - t1$ c_D (current unstable) - t0^ c_C (base unstable) + s1$ c_D (current unstable) + s0^ c_C (base unstable) Test stack behavior with a split -------------------------------- @@ -820,10 +820,10 @@ $ hg stack ### topic: blue ### target: default (branch) - t3: c_I - t2: c_G - t1@ c_D (current) - t0^ c_A (base) + s3: c_I + s2: c_G + s1@ c_D (current) + s0^ c_A (base) making a split (first get something to split) @@ -842,10 +842,10 @@ $ hg stack ### topic: blue ### target: default (branch) - t3$ c_I (unstable) - t2@ c_G (current) - t1: c_D - t0^ c_A (base) + s3$ c_I (unstable) + s2@ c_G (current) + s1: c_D + s0^ c_A (base) $ hg --config extensions.evolve= --config ui.interactive=yes split << EOF > y > y @@ -922,8 +922,8 @@ $ hg stack ### topic: blue ### target: default (branch) - t4$ c_I (unstable) - t3@ c_G (current) - t2: c_G - t1: c_D - t0^ c_A (base) + s4$ c_I (unstable) + s3@ c_G (current) + s2: c_G + s1: c_D + s0^ c_A (base)