Mercurial > evolve
comparison tests/test-evolve-cycles.t @ 3000:bd7e8be29542 stable
branching: merge future 6.7.0 in the stable branch
We are getting ready to release a new version.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 27 Sep 2017 00:54:28 +0200 |
parents | 586c9ace20b3 |
children | 67b59d1657cf 945a0989e41b |
comparison
equal
deleted
inserted
replaced
2852:0d16c89aa185 | 3000:bd7e8be29542 |
---|---|
87 | 87 |
88 Check that debugobshistory never crash on a cycle | 88 Check that debugobshistory never crash on a cycle |
89 | 89 |
90 $ hg obslog "desc(A)" --hidden | 90 $ hg obslog "desc(A)" --hidden |
91 @ 2a34000d3544 (1) A | 91 @ 2a34000d3544 (1) A |
92 | rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob) | 92 | rewritten(description, parent, content) as c473644ee0e9 by test (Thu Jan 01 00:00:00 1970 +0000) |
93 | | 93 | |
94 x a8df460dbbfe (3) C | 94 x a8df460dbbfe (3) C |
95 | rewritten(description, parent, content) by test (*) as 2a34000d3544 (glob) | 95 | rewritten(description, parent, content) as 2a34000d3544 by test (Thu Jan 01 00:00:00 1970 +0000) |
96 | | 96 | |
97 x c473644ee0e9 (2) B | 97 x c473644ee0e9 (2) B |
98 | rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob) | 98 | rewritten(description, parent, content) as a8df460dbbfe by test (Thu Jan 01 00:00:00 1970 +0000) |
99 | | 99 | |
100 | 100 |
101 $ hg obslog "desc(B)" --hidden | 101 $ hg obslog "desc(B)" --hidden |
102 @ 2a34000d3544 (1) A | 102 @ 2a34000d3544 (1) A |
103 | rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob) | 103 | rewritten(description, parent, content) as c473644ee0e9 by test (Thu Jan 01 00:00:00 1970 +0000) |
104 | | 104 | |
105 x a8df460dbbfe (3) C | 105 x a8df460dbbfe (3) C |
106 | rewritten(description, parent, content) by test (*) as 2a34000d3544 (glob) | 106 | rewritten(description, parent, content) as 2a34000d3544 by test (Thu Jan 01 00:00:00 1970 +0000) |
107 | | 107 | |
108 x c473644ee0e9 (2) B | 108 x c473644ee0e9 (2) B |
109 | rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob) | 109 | rewritten(description, parent, content) as a8df460dbbfe by test (Thu Jan 01 00:00:00 1970 +0000) |
110 | | 110 | |
111 | 111 |
112 $ hg obslog "desc(C)" --hidden | 112 $ hg obslog "desc(C)" --hidden |
113 @ 2a34000d3544 (1) A | 113 @ 2a34000d3544 (1) A |
114 | rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob) | 114 | rewritten(description, parent, content) as c473644ee0e9 by test (Thu Jan 01 00:00:00 1970 +0000) |
115 | | 115 | |
116 x a8df460dbbfe (3) C | 116 x a8df460dbbfe (3) C |
117 | rewritten(description, parent, content) by test (*) as 2a34000d3544 (glob) | 117 | rewritten(description, parent, content) as 2a34000d3544 by test (Thu Jan 01 00:00:00 1970 +0000) |
118 | | 118 | |
119 x c473644ee0e9 (2) B | 119 x c473644ee0e9 (2) B |
120 | rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob) | 120 | rewritten(description, parent, content) as a8df460dbbfe by test (Thu Jan 01 00:00:00 1970 +0000) |
121 | | 121 | |
122 | 122 |
123 Check that all option don't crash on a cycle either | 123 Check that all option don't crash on a cycle either |
124 | 124 |
125 $ hg obslog "desc(C)" --hidden --all | 125 $ hg obslog "desc(C)" --hidden --all |
126 @ 2a34000d3544 (1) A | 126 @ 2a34000d3544 (1) A |
127 | rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob) | 127 | rewritten(description, parent, content) as c473644ee0e9 by test (Thu Jan 01 00:00:00 1970 +0000) |
128 | | 128 | |
129 x a8df460dbbfe (3) C | 129 x a8df460dbbfe (3) C |
130 | rewritten(description, parent, content) by test (*) as 2a34000d3544 (glob) | 130 | rewritten(description, parent, content) as 2a34000d3544 by test (Thu Jan 01 00:00:00 1970 +0000) |
131 | | 131 | |
132 x c473644ee0e9 (2) B | 132 x c473644ee0e9 (2) B |
133 | rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob) | 133 | rewritten(description, parent, content) as a8df460dbbfe by test (Thu Jan 01 00:00:00 1970 +0000) |
134 | | 134 | |
135 | 135 |
136 Test with multiple cyles | 136 Test with multiple cyles |
137 ======================== | 137 ======================== |
138 | 138 |
250 | 250 |
251 Check that debugobshistory never crash on a cycle | 251 Check that debugobshistory never crash on a cycle |
252 | 252 |
253 $ hg obslog "desc(D)" --hidden | 253 $ hg obslog "desc(D)" --hidden |
254 x 0da815c333f6 (5) E | 254 x 0da815c333f6 (5) E |
255 | rewritten(description, parent, content) by test (*) as d9f908fde1a1 (glob) | 255 | rewritten(description, parent, content) as d9f908fde1a1 by test (Thu Jan 01 00:00:00 1970 +0000) |
256 | | 256 | |
257 @ 868d2e0eb19c (4) D | 257 @ 868d2e0eb19c (4) D |
258 |\ rewritten(description, parent, content) by test (*) as 0da815c333f6 (glob) | 258 |\ rewritten(description, parent, content) as 0da815c333f6 by test (Thu Jan 01 00:00:00 1970 +0000) |
259 | | | 259 | | |
260 | x d9f908fde1a1 (6) F | 260 | x d9f908fde1a1 (6) F |
261 | | rewritten(description, parent, content) by test (*) as 868d2e0eb19c (glob) | 261 | | rewritten(description, parent, content) as 868d2e0eb19c by test (Thu Jan 01 00:00:00 1970 +0000) |
262 | | | 262 | | |
263 +---x 2a34000d3544 (1) A | 263 +---x 2a34000d3544 (1) A |
264 | | rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob) | 264 | | rewritten(description, parent, content) as c473644ee0e9 by test (Thu Jan 01 00:00:00 1970 +0000) |
265 | | | 265 | | |
266 x | a8df460dbbfe (3) C | 266 x | a8df460dbbfe (3) C |
267 | | rewritten(description, parent, content) by test (*) as 2a34000d3544, 868d2e0eb19c (glob) | 267 | | rewritten(description, parent, content) as 2a34000d3544, 868d2e0eb19c by test (Thu Jan 01 00:00:00 1970 +0000) |
268 | | | 268 | | |
269 x | c473644ee0e9 (2) B | 269 x | c473644ee0e9 (2) B |
270 | | rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob) | 270 | | rewritten(description, parent, content) as a8df460dbbfe by test (Thu Jan 01 00:00:00 1970 +0000) |
271 | | | 271 | | |
272 Check that all option don't crash either on a cycle | 272 Check that all option don't crash either on a cycle |
273 $ hg obslog --all --hidden "desc(F)" | 273 $ hg obslog --all --hidden "desc(F)" |
274 x 0da815c333f6 (5) E | 274 x 0da815c333f6 (5) E |
275 | rewritten(description, parent, content) by test (*) as d9f908fde1a1 (glob) | 275 | rewritten(description, parent, content) as d9f908fde1a1 by test (Thu Jan 01 00:00:00 1970 +0000) |
276 | | 276 | |
277 @ 868d2e0eb19c (4) D | 277 @ 868d2e0eb19c (4) D |
278 |\ rewritten(description, parent, content) by test (*) as 0da815c333f6 (glob) | 278 |\ rewritten(description, parent, content) as 0da815c333f6 by test (Thu Jan 01 00:00:00 1970 +0000) |
279 | | | 279 | | |
280 | x d9f908fde1a1 (6) F | 280 | x d9f908fde1a1 (6) F |
281 | | rewritten(description, parent, content) by test (*) as 868d2e0eb19c (glob) | 281 | | rewritten(description, parent, content) as 868d2e0eb19c by test (Thu Jan 01 00:00:00 1970 +0000) |
282 | | | 282 | | |
283 +---x 2a34000d3544 (1) A | 283 +---x 2a34000d3544 (1) A |
284 | | rewritten(description, parent, content) by test (*) as c473644ee0e9 (glob) | 284 | | rewritten(description, parent, content) as c473644ee0e9 by test (Thu Jan 01 00:00:00 1970 +0000) |
285 | | | 285 | | |
286 x | a8df460dbbfe (3) C | 286 x | a8df460dbbfe (3) C |
287 | | rewritten(description, parent, content) by test (*) as 2a34000d3544, 868d2e0eb19c (glob) | 287 | | rewritten(description, parent, content) as 2a34000d3544, 868d2e0eb19c by test (Thu Jan 01 00:00:00 1970 +0000) |
288 | | | 288 | | |
289 x | c473644ee0e9 (2) B | 289 x | c473644ee0e9 (2) B |
290 | | rewritten(description, parent, content) by test (*) as a8df460dbbfe (glob) | 290 | | rewritten(description, parent, content) as a8df460dbbfe by test (Thu Jan 01 00:00:00 1970 +0000) |
291 | | | 291 | | |
292 Check the json output is valid in this case | 292 Check the json output is valid in this case |
293 | 293 |
294 $ hg obslog "desc(D)" --hidden --no-graph -Tjson | python -m json.tool | 294 $ hg obslog "desc(D)" --hidden --no-graph -Tjson | python -m json.tool |
295 [ | 295 [ |
296 { | 296 { |
297 "debugobshistory.markers": [ | 297 "markers": [ |
298 { | 298 { |
299 "debugobshistory.effect": [ | 299 "date": [ |
300 *, (glob) | |
301 0 | |
302 ], | |
303 "effect": [ | |
304 *, (glob) | |
305 "parent", | |
306 "content" | |
307 ], | |
308 "succnodes": [ | |
309 "0da815c333f6" | |
310 ], | |
311 "user": "test", | |
312 "verb": "rewritten" | |
313 } | |
314 ], | |
315 "node": "868d2e0eb19c", | |
316 "rev": 4, | |
317 "shortdescription": "D" | |
318 }, | |
319 { | |
320 "markers": [ | |
321 { | |
322 "date": [ | |
323 *, (glob) | |
324 0 | |
325 ], | |
326 "effect": [ | |
300 "description", | 327 "description", |
301 "parent", | 328 "parent", |
302 "content" | 329 "content" |
303 ], | 330 ], |
304 "debugobshistory.marker_date": [ | 331 "succnodes": [ |
305 *, (glob) | 332 "868d2e0eb19c" |
306 0 | 333 ], |
307 ], | 334 "user": "test", |
308 "debugobshistory.marker_user": "test", | 335 "verb": "rewritten" |
309 "debugobshistory.succnodes": [ | 336 } |
310 "0da815c333f6" | 337 ], |
311 ], | 338 "node": "d9f908fde1a1", |
312 "debugobshistory.verb": "rewritten" | 339 "rev": 6, |
313 } | 340 "shortdescription": "F" |
314 ], | |
315 "debugobshistory.node": "868d2e0eb19c", | |
316 "debugobshistory.rev": 4, | |
317 "debugobshistory.shortdescription": "D" | |
318 }, | 341 }, |
319 { | 342 { |
320 "debugobshistory.markers": [ | 343 "markers": [ |
321 { | 344 { |
322 "debugobshistory.effect": [ | 345 "date": [ |
346 *, (glob) | |
347 0 | |
348 ], | |
349 "effect": [ | |
323 "description", | 350 "description", |
324 "parent", | 351 "parent", |
325 "content" | 352 "content" |
326 ], | 353 ], |
327 "debugobshistory.marker_date": [ | 354 "succnodes": [ |
328 *, (glob) | 355 "d9f908fde1a1" |
329 0 | 356 ], |
330 ], | 357 "user": "test", |
331 "debugobshistory.marker_user": "test", | 358 "verb": "rewritten" |
332 "debugobshistory.succnodes": [ | 359 } |
333 "868d2e0eb19c" | 360 ], |
334 ], | 361 "node": "0da815c333f6", |
335 "debugobshistory.verb": "rewritten" | 362 "rev": 5, |
336 } | 363 "shortdescription": "E" |
337 ], | |
338 "debugobshistory.node": "d9f908fde1a1", | |
339 "debugobshistory.rev": 6, | |
340 "debugobshistory.shortdescription": "F" | |
341 }, | 364 }, |
342 { | 365 { |
343 "debugobshistory.markers": [ | 366 "markers": [ |
344 { | 367 { |
345 "debugobshistory.effect": [ | 368 "date": [ |
369 *, (glob) | |
370 0 | |
371 ], | |
372 "effect": [ | |
346 "description", | 373 "description", |
347 "parent", | 374 "parent", |
348 "content" | 375 "content" |
349 ], | 376 ], |
350 "debugobshistory.marker_date": [ | 377 "succnodes": [ |
351 *, (glob) | |
352 0 | |
353 ], | |
354 "debugobshistory.marker_user": "test", | |
355 "debugobshistory.succnodes": [ | |
356 "d9f908fde1a1" | |
357 ], | |
358 "debugobshistory.verb": "rewritten" | |
359 } | |
360 ], | |
361 "debugobshistory.node": "0da815c333f6", | |
362 "debugobshistory.rev": 5, | |
363 "debugobshistory.shortdescription": "E" | |
364 }, | |
365 { | |
366 "debugobshistory.markers": [ | |
367 { | |
368 "debugobshistory.effect": [ | |
369 "description", | |
370 "parent", | |
371 "content" | |
372 ], | |
373 "debugobshistory.marker_date": [ | |
374 *, (glob) | |
375 0 | |
376 ], | |
377 "debugobshistory.marker_user": "test", | |
378 "debugobshistory.succnodes": [ | |
379 "2a34000d3544", | 378 "2a34000d3544", |
380 "868d2e0eb19c" | 379 "868d2e0eb19c" |
381 ], | 380 ], |
382 "debugobshistory.verb": "rewritten" | 381 "user": "test", |
383 } | 382 "verb": "rewritten" |
384 ], | 383 } |
385 "debugobshistory.node": "a8df460dbbfe", | 384 ], |
386 "debugobshistory.rev": 3, | 385 "node": "a8df460dbbfe", |
387 "debugobshistory.shortdescription": "C" | 386 "rev": 3, |
387 "shortdescription": "C" | |
388 }, | 388 }, |
389 { | 389 { |
390 "debugobshistory.markers": [ | 390 "markers": [ |
391 { | 391 { |
392 "debugobshistory.effect": [ | 392 "date": [ |
393 *, (glob) | |
394 0 | |
395 ], | |
396 "effect": [ | |
393 "description", | 397 "description", |
394 "parent", | 398 "parent", |
395 "content" | 399 "content" |
396 ], | 400 ], |
397 "debugobshistory.marker_date": [ | 401 "succnodes": [ |
398 *, (glob) | |
399 0 | |
400 ], | |
401 "debugobshistory.marker_user": "test", | |
402 "debugobshistory.succnodes": [ | |
403 "a8df460dbbfe" | 402 "a8df460dbbfe" |
404 ], | 403 ], |
405 "debugobshistory.verb": "rewritten" | 404 "user": "test", |
406 } | 405 "verb": "rewritten" |
407 ], | 406 } |
408 "debugobshistory.node": "c473644ee0e9", | 407 ], |
409 "debugobshistory.rev": 2, | 408 "node": "c473644ee0e9", |
410 "debugobshistory.shortdescription": "B" | 409 "rev": 2, |
410 "shortdescription": "B" | |
411 }, | 411 }, |
412 { | 412 { |
413 "debugobshistory.markers": [ | 413 "markers": [ |
414 { | 414 { |
415 "debugobshistory.effect": [ | 415 "date": [ |
416 0.0, | |
417 0 | |
418 ], | |
419 "effect": [ | |
416 "description", | 420 "description", |
417 "parent", | 421 "parent", |
418 "content" | 422 "content" |
419 ], | 423 ], |
420 "debugobshistory.marker_date": [ | 424 "succnodes": [ |
421 *, (glob) | |
422 0 | |
423 ], | |
424 "debugobshistory.marker_user": "test", | |
425 "debugobshistory.succnodes": [ | |
426 "c473644ee0e9" | 425 "c473644ee0e9" |
427 ], | 426 ], |
428 "debugobshistory.verb": "rewritten" | 427 "user": "test", |
429 } | 428 "verb": "rewritten" |
430 ], | 429 } |
431 "debugobshistory.node": "2a34000d3544", | 430 ], |
432 "debugobshistory.rev": 1, | 431 "node": "2a34000d3544", |
433 "debugobshistory.shortdescription": "A" | 432 "rev": 1, |
433 "shortdescription": "A" | |
434 } | 434 } |
435 ] | 435 ] |
436 | 436 |