comparison tests/test-topic-stack.t @ 3914:96945ea908df stable

branching: merge default into stable The stable branch of Mercurial core now contains Mercurial 4.7 so evolve branch policy requires this merge. The @ bookmark is in the right location, so people doing clone will get to the latest release.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 31 Jul 2018 12:52:06 +0200
parents eb928f5728c4
children f3713d41b85b fbc51e98cf13
comparison
equal deleted inserted replaced
3901:f2b8429db565 3914:96945ea908df
16 marked working directory as topic: other 16 marked working directory as topic: other
17 $ echo aaa > aaa 17 $ echo aaa > aaa
18 $ hg add aaa 18 $ hg add aaa
19 $ hg commit -m c_a 19 $ hg commit -m c_a
20 active topic 'other' grew its first changeset 20 active topic 'other' grew its first changeset
21 (see 'hg help topics' for more information)
21 $ echo aaa > bbb 22 $ echo aaa > bbb
22 $ hg add bbb 23 $ hg add bbb
23 $ hg commit -m c_b 24 $ hg commit -m c_b
24 $ hg topic foo 25 $ hg topic foo
25 $ echo aaa > ccc 26 $ echo aaa > ccc
26 $ hg add ccc 27 $ hg add ccc
27 $ hg commit -m c_c 28 $ hg commit -m c_c
28 active topic 'foo' grew its first changeset 29 active topic 'foo' grew its first changeset
30 (see 'hg help topics' for more information)
29 $ echo aaa > ddd 31 $ echo aaa > ddd
30 $ hg add ddd 32 $ hg add ddd
31 $ hg commit -m c_d 33 $ hg commit -m c_d
32 $ echo aaa > eee 34 $ echo aaa > eee
33 $ hg add eee 35 $ hg add eee
60 ### target: default (branch) 62 ### target: default (branch)
61 t2@ c_b (current) 63 t2@ c_b (current)
62 t1: c_a 64 t1: c_a
63 $ hg phase --public 'topic("other")' 65 $ hg phase --public 'topic("other")'
64 active topic 'other' is now empty 66 active topic 'other' is now empty
67 (use 'hg topic --clear' to clear it if needed)
65 68
66 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 informating the user about it and displaying good data in this case.
67 70
68 $ hg topic 71 $ hg topic
69 foo (4 changesets) 72 foo (4 changesets)
580 marked working directory as topic: red 583 marked working directory as topic: red
581 $ echo bbb > bbb 584 $ echo bbb > bbb
582 $ hg commit -Am 'c_B' 585 $ hg commit -Am 'c_B'
583 adding bbb 586 adding bbb
584 active topic 'red' grew its first changeset 587 active topic 'red' grew its first changeset
588 (see 'hg help topics' for more information)
585 $ echo ccc > ccc 589 $ echo ccc > ccc
586 $ hg commit -Am 'c_C' 590 $ hg commit -Am 'c_C'
587 adding ccc 591 adding ccc
588 $ hg topic blue 592 $ hg topic blue
589 $ echo ddd > ddd 593 $ echo ddd > ddd
590 $ hg commit -Am 'c_D' 594 $ hg commit -Am 'c_D'
591 adding ddd 595 adding ddd
592 active topic 'blue' grew its first changeset 596 active topic 'blue' grew its first changeset
597 (see 'hg help topics' for more information)
593 $ hg up 'desc("c_B")' 598 $ hg up 'desc("c_B")'
594 switching to topic red 599 switching to topic red
595 0 files updated, 0 files merged, 2 files removed, 0 files unresolved 600 0 files updated, 0 files merged, 2 files removed, 0 files unresolved
596 $ echo eee > eee 601 $ echo eee > eee
597 $ hg commit -Am 'c_E' 602 $ hg commit -Am 'c_E'