comparison tests/test-topic-stack.t @ 1956:d8f1e432b16a

stack: reverse the display order Most mercurial command display the most recent changeset first. We put `hg topic --list` inline with this.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 01 Apr 2016 16:57:11 -0700
parents 61f36480740f
children ea5553e47027
comparison
equal deleted inserted replaced
1955:5452a575b4e5 1956:d8f1e432b16a
52 hg topic -l list all changeset in the topic 52 hg topic -l list all changeset in the topic
53 53
54 $ hg topic 54 $ hg topic
55 * foo 55 * foo
56 $ hg topic --list 56 $ hg topic --list
57 _ c_b 57 t4@ c_f (current)
58 t1: c_c 58 t3: c_e
59 t2: c_d 59 t2: c_d
60 t3: c_e 60 t1: c_c
61 t4@ c_f (current) 61 _ c_b
62 62
63 error case, nothing to list 63 error case, nothing to list
64 64
65 $ hg topic --clear 65 $ hg topic --clear
66 $ hg topic --list 66 $ hg topic --list
100 o 1 default {} draft c_b 100 o 1 default {} draft c_b
101 | 101 |
102 o 0 default {} draft c_a 102 o 0 default {} draft c_a
103 103
104 $ hg topic --list 104 $ hg topic --list
105 _ c_b 105 t4$ c_f (unstable)
106 t1: c_c 106 t3$ c_e (unstable)
107 t2@ c_d (current) 107 t2@ c_d (current)
108 t3$ c_e (unstable) 108 t1: c_c
109 t4$ c_f (unstable) 109 _ c_b
110 110
111 Also test the revset: 111 Also test the revset:
112 112
113 $ hg log -r 'stack()' 113 $ hg log -r 'stack()'
114 2 default {foo} draft c_c 114 2 default {foo} draft c_c
168 168
169 169
170 Test output 170 Test output
171 171
172 $ hg top -l 172 $ hg top -l
173 _ c_b 173 t6: c_f
174 t1: c_c 174 t5: c_e
175 _ c_d
176 t4@ c_h (current)
177 t3: c_g
175 t2: c_d 178 t2: c_d
176 t3: c_g 179 t1: c_c
177 t4@ c_h (current) 180 _ c_b
178 _ c_d
179 t5: c_e
180 t6: c_f
181 181
182 Case with multiple heads on the topic with unstability involved 182 Case with multiple heads on the topic with unstability involved
183 --------------------------------------------------------------- 183 ---------------------------------------------------------------
184 184
185 We amend the message to make sure the display base pick the right changeset 185 We amend the message to make sure the display base pick the right changeset
210 | 210 |
211 o 0 default {} draft c_a 211 o 0 default {} draft c_a
212 212
213 213
214 $ hg topic --list 214 $ hg topic --list
215 _ c_b 215 t6$ c_f (unstable)
216 t1: c_c 216 t5$ c_e (unstable)
217 _ c_D
218 t4: c_h
219 t3: c_g
217 t2@ c_D (current) 220 t2@ c_D (current)
218 t3: c_g 221 t1: c_c
219 t4: c_h 222 _ c_b
220 _ c_D
221 t5$ c_e (unstable)
222 t6$ c_f (unstable)