81 [ |
81 [ |
82 { |
82 { |
83 "isentry": true, |
83 "isentry": true, |
84 "topic.stack.desc": "c_f", |
84 "topic.stack.desc": "c_f", |
85 "topic.stack.index": 4, |
85 "topic.stack.index": 4, |
86 "topic.stack.state": "current", |
86 "topic.stack.state": [ |
|
87 "current" |
|
88 ], |
87 "topic.stack.state.symbol": "@" |
89 "topic.stack.state.symbol": "@" |
88 }, |
90 }, |
89 { |
91 { |
90 "isentry": true, |
92 "isentry": true, |
91 "topic.stack.desc": "c_e", |
93 "topic.stack.desc": "c_e", |
92 "topic.stack.index": 3, |
94 "topic.stack.index": 3, |
93 "topic.stack.state": "clean", |
95 "topic.stack.state": [ |
|
96 "clean" |
|
97 ], |
94 "topic.stack.state.symbol": ":" |
98 "topic.stack.state.symbol": ":" |
95 }, |
99 }, |
96 { |
100 { |
97 "isentry": true, |
101 "isentry": true, |
98 "topic.stack.desc": "c_d", |
102 "topic.stack.desc": "c_d", |
99 "topic.stack.index": 2, |
103 "topic.stack.index": 2, |
100 "topic.stack.state": "clean", |
104 "topic.stack.state": [ |
|
105 "clean" |
|
106 ], |
101 "topic.stack.state.symbol": ":" |
107 "topic.stack.state.symbol": ":" |
102 }, |
108 }, |
103 { |
109 { |
104 "isentry": true, |
110 "isentry": true, |
105 "topic.stack.desc": "c_c", |
111 "topic.stack.desc": "c_c", |
106 "topic.stack.index": 1, |
112 "topic.stack.index": 1, |
107 "topic.stack.state": "clean", |
113 "topic.stack.state": [ |
|
114 "clean" |
|
115 ], |
108 "topic.stack.state.symbol": ":" |
116 "topic.stack.state.symbol": ":" |
109 }, |
117 }, |
110 { |
118 { |
111 "isentry": false, |
119 "isentry": false, |
112 "topic.stack.desc": "c_b", |
120 "topic.stack.desc": "c_b", |
113 "topic.stack.state": "base", |
121 "topic.stack.state": [ |
|
122 "base" |
|
123 ], |
114 "topic.stack.state.symbol": "^" |
124 "topic.stack.state.symbol": "^" |
115 } |
125 } |
116 ] |
126 ] |
117 |
127 |
118 error case, nothing to list |
128 error case, nothing to list |
170 t4$ c_f (unstable) |
180 t4$ c_f (unstable) |
171 t3$ c_e (unstable) |
181 t3$ c_e (unstable) |
172 t2@ c_d (current) |
182 t2@ c_d (current) |
173 t1: c_c |
183 t1: c_c |
174 ^ c_b |
184 ^ c_b |
|
185 $ hg up t3 |
|
186 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
187 $ hg topic --list |
|
188 ### topic: foo |
|
189 ### branch: default |
|
190 t4$ c_f (unstable) |
|
191 t3@ c_e (current) |
|
192 t2: c_d |
|
193 t1: c_c |
|
194 ^ c_b |
|
195 $ hg topic --list --color=debug |
|
196 [topic.stack.summary.topic|### topic: [topic.active|foo]] |
|
197 [topic.stack.summary.branches|### branch: default] |
|
198 [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)] |
|
199 [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)] |
|
200 [topic.stack.index topic.stack.index.clean|t2][topic.stack.state topic.stack.state.clean|:] [topic.stack.desc topic.stack.desc.clean|c_d] |
|
201 [topic.stack.index topic.stack.index.clean|t1][topic.stack.state topic.stack.state.clean|:] [topic.stack.desc topic.stack.desc.clean|c_c] |
|
202 [topic.stack.state topic.stack.state.base|^] [topic.stack.desc topic.stack.desc.base|c_b] |
|
203 $ hg up t2 |
|
204 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
175 |
205 |
176 Also test the revset: |
206 Also test the revset: |
177 |
207 |
178 $ hg log -r 'stack()' |
208 $ hg log -r 'stack()' |
179 2 default {foo} draft c_c |
209 2 default {foo} draft c_c |