Mercurial > evolve
comparison tests/test-topic-stack.t @ 1973:e97458bf53be
stack: introduce and explicite command to display the stack
If is worth testing having the feature lives outside 'hg topic --list'. The
'stack' name is sub optimal because the conflict with 'status'. using "hg st"
would still work as 'st' is hard coded, but this mean 'hg stack' has no short
version.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Fri, 12 Aug 2016 11:09:26 +0200 |
parents | d9c7fced94fc |
children | ba79d23594d6 |
comparison
equal
deleted
inserted
replaced
1972:04ce84b7b9d1 | 1973:e97458bf53be |
---|---|
61 4 files updated, 0 files merged, 0 files removed, 0 files unresolved | 61 4 files updated, 0 files merged, 0 files removed, 0 files unresolved |
62 | 62 |
63 Simple test | 63 Simple test |
64 ----------- | 64 ----------- |
65 | 65 |
66 hg topic -l list all changeset in the topic | 66 'hg stack' list all changeset in the topic |
67 | 67 |
68 $ hg topic | 68 $ hg topic |
69 * foo | 69 * foo |
70 $ hg topic --list | 70 $ hg stack |
71 t4@ c_f (current) | 71 t4@ c_f (current) |
72 t3: c_e | 72 t3: c_e |
73 t2: c_d | 73 t2: c_d |
74 t1: c_c | 74 t1: c_c |
75 ^ c_b | 75 ^ c_b |
76 | 76 |
77 error case, nothing to list | 77 error case, nothing to list |
78 | 78 |
79 $ hg topic --clear | 79 $ hg topic --clear |
80 $ hg topic --list | 80 $ hg stack |
81 abort: no active topic to list | 81 abort: no active topic to list |
82 [255] | 82 [255] |
83 | 83 |
84 Test "t#" reference | 84 Test "t#" reference |
85 ------------------- | 85 ------------------- |