comparison tests/test-topic-stack.t @ 2684:90e11985d0cc

topic: exclude public and topic changeset from branch stack Stack use-case is to show the current work in progress, which are symbolized by the phase draft and secret phase. Moreover showing public changesets in stack output when displaying current branch would display a lot of changesets for long-lived branches and would be quite useless. We also exclude topic changeset form the stack since they already exist on their own stack. getstack revsets didn't needed update when displaying a topic as when a changeset become public, its topic is no longer relevant.
author Boris Feld <boris.feld@octobus.net>
date Thu, 29 Jun 2017 16:49:33 +0200
parents aa4db71a6224
children 52d5c5ce27e4 f19b314d8475
comparison
equal deleted inserted replaced
2683:d22090c6e68f 2684:90e11985d0cc
127 127
128 error case, nothing to list 128 error case, nothing to list
129 129
130 $ hg topic --clear 130 $ hg topic --clear
131 $ hg stack 131 $ hg stack
132 ### branch: default 132 ### branch:
133 b6@ c_f (current)
134 b5: c_e
135 b4: c_d
136 b3: c_c
137 b2: c_b
138 b1: c_a
139 133
140 Test "t#" reference 134 Test "t#" reference
141 ------------------- 135 -------------------
142 136
143 137
338 abort: cannot resolve "thisdoesnotexist": no such topic found 332 abort: cannot resolve "thisdoesnotexist": no such topic found
339 [255] 333 [255]
340 $ hg topic --list thisdoesnotexist 334 $ hg topic --list thisdoesnotexist
341 abort: cannot resolve "thisdoesnotexist": no such topic found 335 abort: cannot resolve "thisdoesnotexist": no such topic found
342 [255] 336 [255]
337