84 |
86 |
85 Check that debugobshistory never crash on a cycle |
87 Check that debugobshistory never crash on a cycle |
86 |
88 |
87 $ hg obslog "desc(A)" --hidden |
89 $ hg obslog "desc(A)" --hidden |
88 @ 2a34000d3544 (1) A |
90 @ 2a34000d3544 (1) A |
89 | rewritten by test (*) as c473644ee0e9 (glob) |
91 | rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob) |
90 | |
92 | |
91 x a8df460dbbfe (3) C |
93 x a8df460dbbfe (3) C |
92 | rewritten by test (*) as 2a34000d3544 (glob) |
94 | rewritten(description, parent, content) by test (*) as 2a34000d3544 (glob) |
93 | |
95 | |
94 x c473644ee0e9 (2) B |
96 x c473644ee0e9 (2) B |
95 | rewritten by test (*) as a8df460dbbfe (glob) |
97 | rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob) |
96 | |
98 | |
97 |
99 |
98 $ hg obslog "desc(B)" --hidden |
100 $ hg obslog "desc(B)" --hidden |
99 @ 2a34000d3544 (1) A |
101 @ 2a34000d3544 (1) A |
100 | rewritten by test (*) as c473644ee0e9 (glob) |
102 | rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob) |
101 | |
103 | |
102 x a8df460dbbfe (3) C |
104 x a8df460dbbfe (3) C |
103 | rewritten by test (*) as 2a34000d3544 (glob) |
105 | rewritten(description, parent, content) by test (*) as 2a34000d3544 (glob) |
104 | |
106 | |
105 x c473644ee0e9 (2) B |
107 x c473644ee0e9 (2) B |
106 | rewritten by test (*) as a8df460dbbfe (glob) |
108 | rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob) |
107 | |
109 | |
108 |
110 |
109 $ hg obslog "desc(C)" --hidden |
111 $ hg obslog "desc(C)" --hidden |
110 @ 2a34000d3544 (1) A |
112 @ 2a34000d3544 (1) A |
111 | rewritten by test (*) as c473644ee0e9 (glob) |
113 | rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob) |
112 | |
114 | |
113 x a8df460dbbfe (3) C |
115 x a8df460dbbfe (3) C |
114 | rewritten by test (*) as 2a34000d3544 (glob) |
116 | rewritten(description, parent, content) by test (*) as 2a34000d3544 (glob) |
115 | |
117 | |
116 x c473644ee0e9 (2) B |
118 x c473644ee0e9 (2) B |
117 | rewritten by test (*) as a8df460dbbfe (glob) |
119 | rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob) |
118 | |
120 | |
119 |
121 |
120 Check that all option don't crash on a cycle either |
122 Check that all option don't crash on a cycle either |
121 |
123 |
122 $ hg obslog "desc(C)" --hidden --all |
124 $ hg obslog "desc(C)" --hidden --all |
123 @ 2a34000d3544 (1) A |
125 @ 2a34000d3544 (1) A |
124 | rewritten by test (*) as c473644ee0e9 (glob) |
126 | rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob) |
125 | |
127 | |
126 x a8df460dbbfe (3) C |
128 x a8df460dbbfe (3) C |
127 | rewritten by test (*) as 2a34000d3544 (glob) |
129 | rewritten(description, parent, content) by test (*) as 2a34000d3544 (glob) |
128 | |
130 | |
129 x c473644ee0e9 (2) B |
131 x c473644ee0e9 (2) B |
130 | rewritten by test (*) as a8df460dbbfe (glob) |
132 | rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob) |
131 | |
133 | |
132 |
134 |
133 Test with multiple cyles |
135 Test with multiple cyles |
134 ======================== |
136 ======================== |
135 |
137 |
241 |
243 |
242 Check that debugobshistory never crash on a cycle |
244 Check that debugobshistory never crash on a cycle |
243 |
245 |
244 $ hg obslog "desc(D)" --hidden |
246 $ hg obslog "desc(D)" --hidden |
245 x 0da815c333f6 (5) E |
247 x 0da815c333f6 (5) E |
246 | rewritten by test (*) as d9f908fde1a1 (glob) |
248 | rewritten(description, parent, content) by test (*) as d9f908fde1a1 (glob) |
247 | |
249 | |
248 @ 868d2e0eb19c (4) D |
250 @ 868d2e0eb19c (4) D |
249 |\ rewritten by test (*) as 0da815c333f6 (glob) |
251 |\ rewritten(description, parent, content) by test (*) as 0da815c333f6 (glob) |
250 | | |
252 | | |
251 | x d9f908fde1a1 (6) F |
253 | x d9f908fde1a1 (6) F |
252 | | rewritten by test (*) as 868d2e0eb19c (glob) |
254 | | rewritten(description, parent, content) by test (*) as 868d2e0eb19c (glob) |
253 | | |
255 | | |
254 +---x 2a34000d3544 (1) A |
256 +---x 2a34000d3544 (1) A |
255 | | rewritten by test (*) as c473644ee0e9 (glob) |
257 | | rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob) |
256 | | |
258 | | |
257 x | a8df460dbbfe (3) C |
259 x | a8df460dbbfe (3) C |
258 | | rewritten by test (*) as 2a34000d3544, 868d2e0eb19c (glob) |
260 | | rewritten(description, parent, content) by test (*) as 2a34000d3544, 868d2e0eb19c (glob) |
259 | | |
261 | | |
260 x | c473644ee0e9 (2) B |
262 x | c473644ee0e9 (2) B |
261 | | rewritten by test (*) as a8df460dbbfe (glob) |
263 | | rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob) |
262 | | |
264 | | |
263 Check that all option don't crash either on a cycle |
265 Check that all option don't crash either on a cycle |
264 $ hg obslog --all --hidden "desc(F)" |
266 $ hg obslog --all --hidden "desc(F)" |
265 x 0da815c333f6 (5) E |
267 x 0da815c333f6 (5) E |
266 | rewritten by test (*) as d9f908fde1a1 (glob) |
268 | rewritten(description, parent, content) by test (*) as d9f908fde1a1 (glob) |
267 | |
269 | |
268 @ 868d2e0eb19c (4) D |
270 @ 868d2e0eb19c (4) D |
269 |\ rewritten by test (*) as 0da815c333f6 (glob) |
271 |\ rewritten(description, parent, content) by test (*) as 0da815c333f6 (glob) |
270 | | |
272 | | |
271 | x d9f908fde1a1 (6) F |
273 | x d9f908fde1a1 (6) F |
272 | | rewritten by test (*) as 868d2e0eb19c (glob) |
274 | | rewritten(description, parent, content) by test (*) as 868d2e0eb19c (glob) |
273 | | |
275 | | |
274 +---x 2a34000d3544 (1) A |
276 +---x 2a34000d3544 (1) A |
275 | | rewritten by test (*) as c473644ee0e9 (glob) |
277 | | rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob) |
276 | | |
278 | | |
277 x | a8df460dbbfe (3) C |
279 x | a8df460dbbfe (3) C |
278 | | rewritten by test (*) as 2a34000d3544, 868d2e0eb19c (glob) |
280 | | rewritten(description, parent, content) by test (*) as 2a34000d3544, 868d2e0eb19c (glob) |
279 | | |
281 | | |
280 x | c473644ee0e9 (2) B |
282 x | c473644ee0e9 (2) B |
281 | | rewritten by test (*) as a8df460dbbfe (glob) |
283 | | rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob) |
282 | | |
284 | | |
283 Check the json output is valid in this case |
285 Check the json output is valid in this case |
284 |
286 |
285 $ hg obslog "desc(D)" --hidden --no-graph -Tjson | python -m json.tool |
287 $ hg obslog "desc(D)" --hidden --no-graph -Tjson | python -m json.tool |
286 [ |
288 [ |
287 { |
289 { |
288 "debugobshistory.markers": [ |
290 "debugobshistory.markers": [ |
289 { |
291 { |
|
292 "debugobshistory.effect": [ |
|
293 "description", |
|
294 "parent", |
|
295 "content" |
|
296 ], |
290 "debugobshistory.marker_date": [ |
297 "debugobshistory.marker_date": [ |
291 *, (glob) |
298 *, (glob) |
292 0 |
299 0 |
293 ], |
300 ], |
294 "debugobshistory.marker_user": "test", |
301 "debugobshistory.marker_user": "test", |