diff -r 01e32f11f1ef -r 52d5c5ce27e4 tests/test-topic-stack.t --- a/tests/test-topic-stack.t Fri Jun 16 19:27:36 2017 +0200 +++ b/tests/test-topic-stack.t Sun Jul 02 18:22:39 2017 +0200 @@ -131,8 +131,7 @@ $ hg topic --clear $ hg stack - abort: no active topic to list - [255] + ### branch: Test "t#" reference ------------------- @@ -190,7 +189,7 @@ ### topic: foo ### branch: default t4$ c_f (unstable) - t3@ c_e (current) + t3$ c_e (current unstable) t2: c_d t1: c_c ^ c_b @@ -198,7 +197,7 @@ [topic.stack.summary.topic|### topic: [topic.active|foo]] [topic.stack.summary.branches|### branch: default] [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|t3][topic.stack.state topic.stack.state.current|@] [topic.stack.desc topic.stack.desc.current|c_e][topic.stack.state topic.stack.state.current| (current)] + [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.state topic.stack.state.base|^] [topic.stack.desc topic.stack.desc.base|c_b] @@ -213,6 +212,14 @@ 4 default {foo} draft c_e 5 default {foo} draft c_f + $ hg log -r 'stack(foo)' + hg: parse error: stack() takes no argument, it works on current topic + [255] + + $ hg log -r 'stack(foobar)' + hg: parse error: stack() takes no argument, it works on current topic + [255] + Case with multiple heads on the topic ------------------------------------- @@ -321,3 +328,12 @@ t2@ c_D (current) t1: c_c ^ c_b + +Trying to list non existing topic + $ hg stack thisdoesnotexist + abort: cannot resolve "thisdoesnotexist": no such topic found + [255] + $ hg topic --list thisdoesnotexist + abort: cannot resolve "thisdoesnotexist": no such topic found + [255] +