75 @@ -1,1 +1,2 @@ |
75 @@ -1,1 +1,2 @@ |
76 A0 |
76 A0 |
77 +42 |
77 +42 |
78 |
78 |
79 |
79 |
|
80 |
|
81 $ hg obslog --no-graph --patch 4ae3a4151de9 |
|
82 4ae3a4151de9 (3) A1 |
|
83 471f378eab4c (1) A0 |
|
84 rewritten(description, content) as 4ae3a4151de9 by test (*) (glob) |
|
85 --- a/471f378eab4c-changeset-description |
|
86 +++ b/4ae3a4151de9-changeset-description |
|
87 @@ -1,1 +1,3 @@ |
|
88 -A0 |
|
89 +A1 |
|
90 + |
|
91 +Better commit message |
|
92 |
|
93 diff -r 471f378eab4c -r 4ae3a4151de9 A0 |
|
94 --- a/A0 Thu Jan 01 00:00:00 1970 +0000 |
|
95 +++ b/A0 Thu Jan 01 00:00:00 1970 +0000 |
|
96 @@ -1,1 +1,2 @@ |
|
97 A0 |
|
98 +42 |
|
99 |
|
100 |
|
101 $ hg obslog 4ae3a4151de9 --graph -T'{label("log.summary", shortdescription)} {if(markers, join(markers % "at {date|hgdate} by {user|person} ", " also "))}' |
|
102 @ A1 |
|
103 | |
|
104 x A0 at * by test (glob) |
|
105 |
80 $ hg obslog 4ae3a4151de9 --no-graph -Tjson | python -m json.tool |
106 $ hg obslog 4ae3a4151de9 --no-graph -Tjson | python -m json.tool |
81 [ |
107 [ |
82 { |
108 { |
83 "debugobshistory.markers": [], |
109 "markers": [], |
84 "debugobshistory.node": "4ae3a4151de9", |
110 "node": "4ae3a4151de9", |
85 "debugobshistory.rev": 3, |
111 "rev": 3, |
86 "debugobshistory.shortdescription": "A1" |
112 "shortdescription": "A1" |
87 }, |
113 }, |
88 { |
114 { |
89 "debugobshistory.markers": [ |
115 "markers": [ |
90 { |
116 { |
91 "debugobshistory.effect": [ |
117 "date": [ |
|
118 *, (glob) |
|
119 0 (glob) |
|
120 ], |
|
121 "effect": [ |
92 "description", |
122 "description", |
93 "content" |
123 "content" |
94 ], |
124 ], |
95 "debugobshistory.marker_date": [ |
125 "succnodes": [ |
96 *, (glob) |
|
97 0 (glob) |
|
98 ], |
|
99 "debugobshistory.marker_user": "test", |
|
100 "debugobshistory.succnodes": [ |
|
101 "4ae3a4151de9" |
126 "4ae3a4151de9" |
102 ], |
127 ], |
103 "debugobshistory.verb": "rewritten" |
128 "user": "test", |
|
129 "verb": "rewritten" |
104 } |
130 } |
105 ], |
131 ], |
106 "debugobshistory.node": "471f378eab4c", |
132 "node": "471f378eab4c", |
107 "debugobshistory.rev": 1, |
133 "rev": 1, |
108 "debugobshistory.shortdescription": "A0" |
134 "shortdescription": "A0" |
109 } |
135 } |
110 ] |
136 ] |
111 $ hg obslog --hidden --patch 471f378eab4c |
137 $ hg obslog --hidden --patch 471f378eab4c |
112 x 471f378eab4c (1) A0 |
138 x 471f378eab4c (1) A0 |
113 rewritten(description, content) by test (*) as 4ae3a4151de9 (glob) |
139 rewritten(description, content) as 4ae3a4151de9 by test (*) (glob) |
114 --- a/471f378eab4c-changeset-description |
140 --- a/471f378eab4c-changeset-description |
115 +++ b/4ae3a4151de9-changeset-description |
141 +++ b/4ae3a4151de9-changeset-description |
116 @@ -1,1 +1,3 @@ |
142 @@ -1,1 +1,3 @@ |
117 -A0 |
143 -A0 |
118 +A1 |
144 +A1 |
220 (No patch available yet, no successors) |
246 (No patch available yet, no successors) |
221 |
247 |
222 $ hg obslog 'desc(B0)' --hidden --no-graph -Tjson | python -m json.tool |
248 $ hg obslog 'desc(B0)' --hidden --no-graph -Tjson | python -m json.tool |
223 [ |
249 [ |
224 { |
250 { |
225 "debugobshistory.markers": [ |
251 "markers": [ |
226 { |
252 { |
227 "debugobshistory.marker_date": [ |
253 "date": [ |
228 *, (glob) |
254 *, (glob) |
229 0 (glob) |
255 0 (glob) |
230 ], |
256 ], |
231 "debugobshistory.marker_user": "test", |
257 "user": "test", |
232 "debugobshistory.verb": "pruned" |
258 "verb": "pruned" |
233 } |
259 } |
234 ], |
260 ], |
235 "debugobshistory.node": "0dec01379d3b", |
261 "node": "0dec01379d3b", |
236 "debugobshistory.rev": 2, |
262 "rev": 2, |
237 "debugobshistory.shortdescription": "B0" |
263 "shortdescription": "B0" |
238 } |
264 } |
239 ] |
265 ] |
240 $ hg obslog 'desc(A0)' --patch |
266 $ hg obslog 'desc(A0)' --patch |
241 @ 471f378eab4c (1) A0 |
267 @ 471f378eab4c (1) A0 |
242 |
268 |
243 $ hg obslog 'desc(A0)' --no-graph -Tjson | python -m json.tool |
269 $ hg obslog 'desc(A0)' --no-graph -Tjson | python -m json.tool |
244 [ |
270 [ |
245 { |
271 { |
246 "debugobshistory.markers": [], |
272 "markers": [], |
247 "debugobshistory.node": "471f378eab4c", |
273 "node": "471f378eab4c", |
248 "debugobshistory.rev": 1, |
274 "rev": 1, |
249 "debugobshistory.shortdescription": "A0" |
275 "shortdescription": "A0" |
250 } |
276 } |
251 ] |
277 ] |
252 $ hg up 1 |
278 $ hg up 1 |
253 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
279 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
254 $ hg up 0dec01379d3b |
280 $ hg up 0dec01379d3b |
348 ----------- |
374 ----------- |
349 |
375 |
350 Check that debugobshistory on splitted commit show both targets |
376 Check that debugobshistory on splitted commit show both targets |
351 $ hg obslog 471597cad322 --hidden --patch |
377 $ hg obslog 471597cad322 --hidden --patch |
352 x 471597cad322 (1) A0 |
378 x 471597cad322 (1) A0 |
353 rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
379 rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (*) (glob) |
354 (No patch available yet, too many successors (2)) |
380 (No patch available yet, too many successors (2)) |
355 |
381 |
356 $ hg obslog 471597cad322 --hidden --no-graph -Tjson | python -m json.tool |
382 $ hg obslog 471597cad322 --hidden --no-graph -Tjson | python -m json.tool |
357 [ |
383 [ |
358 { |
384 { |
359 "debugobshistory.markers": [ |
385 "markers": [ |
360 { |
386 { |
361 "debugobshistory.effect": [ |
387 "date": [ |
|
388 *, (glob) |
|
389 0 (glob) |
|
390 ], |
|
391 "effect": [ |
362 "parent", |
392 "parent", |
363 "content" |
393 "content" |
364 ], |
394 ], |
365 "debugobshistory.marker_date": [ |
395 "succnodes": [ |
366 *, (glob) |
|
367 0 (glob) |
|
368 ], |
|
369 "debugobshistory.marker_user": "test", |
|
370 "debugobshistory.succnodes": [ |
|
371 "337fec4d2edc", |
396 "337fec4d2edc", |
372 "f257fde29c7a" |
397 "f257fde29c7a" |
373 ], |
398 ], |
374 "debugobshistory.verb": "rewritten" |
399 "user": "test", |
|
400 "verb": "rewritten" |
375 } |
401 } |
376 ], |
402 ], |
377 "debugobshistory.node": "471597cad322", |
403 "node": "471597cad322", |
378 "debugobshistory.rev": 1, |
404 "rev": 1, |
379 "debugobshistory.shortdescription": "A0" |
405 "shortdescription": "A0" |
380 } |
406 } |
381 ] |
407 ] |
382 Check that debugobshistory on the first successor after split show |
408 Check that debugobshistory on the first successor after split show |
383 the revision plus the splitted one |
409 the revision plus the splitted one |
384 $ hg obslog 337fec4d2edc --patch |
410 $ hg obslog 337fec4d2edc --patch |
385 o 337fec4d2edc (2) A0 |
411 o 337fec4d2edc (2) A0 |
386 | |
412 | |
387 x 471597cad322 (1) A0 |
413 x 471597cad322 (1) A0 |
388 rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
414 rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (*) (glob) |
389 (No patch available yet, too many successors (2)) |
415 (No patch available yet, too many successors (2)) |
390 |
416 |
391 With the all option, it should show the three changesets |
417 With the all option, it should show the three changesets |
392 $ hg obslog --all 337fec4d2edc --patch |
418 $ hg obslog --all 337fec4d2edc --patch |
393 o 337fec4d2edc (2) A0 |
419 o 337fec4d2edc (2) A0 |
394 | |
420 | |
395 | @ f257fde29c7a (3) A0 |
421 | @ f257fde29c7a (3) A0 |
396 |/ |
422 |/ |
397 x 471597cad322 (1) A0 |
423 x 471597cad322 (1) A0 |
398 rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
424 rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (*) (glob) |
399 (No patch available yet, too many successors (2)) |
425 (No patch available yet, too many successors (2)) |
400 |
426 |
401 Check that debugobshistory on the second successor after split show |
427 Check that debugobshistory on the second successor after split show |
402 the revision plus the splitted one |
428 the revision plus the splitted one |
403 $ hg obslog f257fde29c7a --patch |
429 $ hg obslog f257fde29c7a --patch |
404 @ f257fde29c7a (3) A0 |
430 @ f257fde29c7a (3) A0 |
405 | |
431 | |
406 x 471597cad322 (1) A0 |
432 x 471597cad322 (1) A0 |
407 rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
433 rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (*) (glob) |
408 (No patch available yet, too many successors (2)) |
434 (No patch available yet, too many successors (2)) |
409 |
435 |
410 With the all option, it should show the three changesets |
436 With the all option, it should show the three changesets |
411 $ hg obslog f257fde29c7a --all --patch |
437 $ hg obslog f257fde29c7a --all --patch |
412 o 337fec4d2edc (2) A0 |
438 o 337fec4d2edc (2) A0 |
413 | |
439 | |
414 | @ f257fde29c7a (3) A0 |
440 | @ f257fde29c7a (3) A0 |
415 |/ |
441 |/ |
416 x 471597cad322 (1) A0 |
442 x 471597cad322 (1) A0 |
417 rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
443 rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (*) (glob) |
418 (No patch available yet, too many successors (2)) |
444 (No patch available yet, too many successors (2)) |
419 |
445 |
420 Obslog with all option all should also works on the splitted commit |
446 Obslog with all option all should also works on the splitted commit |
421 $ hg obslog -a 471597cad322 --hidden --patch |
447 $ hg obslog -a 471597cad322 --hidden --patch |
422 o 337fec4d2edc (2) A0 |
448 o 337fec4d2edc (2) A0 |
423 | |
449 | |
424 | @ f257fde29c7a (3) A0 |
450 | @ f257fde29c7a (3) A0 |
425 |/ |
451 |/ |
426 x 471597cad322 (1) A0 |
452 x 471597cad322 (1) A0 |
427 rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
453 rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (*) (glob) |
428 (No patch available yet, too many successors (2)) |
454 (No patch available yet, too many successors (2)) |
429 |
455 |
430 Check that debugobshistory on both successors after split show |
456 Check that debugobshistory on both successors after split show |
431 a coherent graph |
457 a coherent graph |
432 $ hg obslog 'f257fde29c7a+337fec4d2edc' --patch |
458 $ hg obslog 'f257fde29c7a+337fec4d2edc' --patch |
433 o 337fec4d2edc (2) A0 |
459 o 337fec4d2edc (2) A0 |
434 | |
460 | |
435 | @ f257fde29c7a (3) A0 |
461 | @ f257fde29c7a (3) A0 |
436 |/ |
462 |/ |
437 x 471597cad322 (1) A0 |
463 x 471597cad322 (1) A0 |
438 rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
464 rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (*) (glob) |
439 (No patch available yet, too many successors (2)) |
465 (No patch available yet, too many successors (2)) |
440 |
466 |
441 $ hg update 471597cad322 |
467 $ hg update 471597cad322 |
442 abort: hidden revision '471597cad322'! |
468 abort: hidden revision '471597cad322'! |
443 (use --hidden to access hidden revisions) |
469 (use --hidden to access hidden revisions) |
613 | @ c7f044602e9b (5) A0 |
639 | @ c7f044602e9b (5) A0 |
614 |/ |
640 |/ |
615 | o f257fde29c7a (3) A0 |
641 | o f257fde29c7a (3) A0 |
616 |/ |
642 |/ |
617 x de7290d8b885 (1) A0 |
643 x de7290d8b885 (1) A0 |
618 rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob) |
644 rewritten(parent, content) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a by test (*) (glob) |
619 (No patch available yet, too many successors (4)) |
645 (No patch available yet, too many successors (4)) |
620 |
646 |
621 $ hg obslog de7290d8b885 --hidden --no-graph -Tjson | python -m json.tool |
647 $ hg obslog de7290d8b885 --hidden --no-graph -Tjson | python -m json.tool |
622 [ |
648 [ |
623 { |
649 { |
624 "debugobshistory.markers": [ |
650 "markers": [ |
625 { |
651 { |
626 "debugobshistory.effect": [ |
652 "date": [ |
|
653 *, (glob) |
|
654 0 (glob) |
|
655 ], |
|
656 "effect": [ |
627 "parent", |
657 "parent", |
628 "content" |
658 "content" |
629 ], |
659 ], |
630 "debugobshistory.marker_date": [ |
660 "succnodes": [ |
631 *, (glob) |
|
632 0 (glob) |
|
633 ], |
|
634 "debugobshistory.marker_user": "test", |
|
635 "debugobshistory.succnodes": [ |
|
636 "1ae8bc733a14", |
661 "1ae8bc733a14", |
637 "337fec4d2edc", |
662 "337fec4d2edc", |
638 "c7f044602e9b", |
663 "c7f044602e9b", |
639 "f257fde29c7a" |
664 "f257fde29c7a" |
640 ], |
665 ], |
641 "debugobshistory.verb": "rewritten" |
666 "user": "test", |
|
667 "verb": "rewritten" |
642 } |
668 } |
643 ], |
669 ], |
644 "debugobshistory.node": "de7290d8b885", |
670 "node": "de7290d8b885", |
645 "debugobshistory.rev": 1, |
671 "rev": 1, |
646 "debugobshistory.shortdescription": "A0" |
672 "shortdescription": "A0" |
647 } |
673 } |
648 ] |
674 ] |
649 $ hg obslog c7f044602e9b --patch |
675 $ hg obslog c7f044602e9b --patch |
650 @ c7f044602e9b (5) A0 |
676 @ c7f044602e9b (5) A0 |
651 | |
677 | |
652 x de7290d8b885 (1) A0 |
678 x de7290d8b885 (1) A0 |
653 rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob) |
679 rewritten(parent, content) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a by test (*) (glob) |
654 (No patch available yet, too many successors (4)) |
680 (No patch available yet, too many successors (4)) |
655 |
681 |
656 $ hg obslog c7f044602e9b --no-graph -Tjson | python -m json.tool |
682 $ hg obslog c7f044602e9b --no-graph -Tjson | python -m json.tool |
657 [ |
683 [ |
658 { |
684 { |
659 "debugobshistory.markers": [], |
685 "markers": [], |
660 "debugobshistory.node": "c7f044602e9b", |
686 "node": "c7f044602e9b", |
661 "debugobshistory.rev": 5, |
687 "rev": 5, |
662 "debugobshistory.shortdescription": "A0" |
688 "shortdescription": "A0" |
663 }, |
689 }, |
664 { |
690 { |
665 "debugobshistory.markers": [ |
691 "markers": [ |
666 { |
692 { |
667 "debugobshistory.effect": [ |
693 "date": [ |
|
694 *, (glob) |
|
695 0 (glob) |
|
696 ], |
|
697 "effect": [ |
668 "parent", |
698 "parent", |
669 "content" |
699 "content" |
670 ], |
700 ], |
671 "debugobshistory.marker_date": [ |
701 "succnodes": [ |
672 *, (glob) |
|
673 0 (glob) |
|
674 ], |
|
675 "debugobshistory.marker_user": "test", |
|
676 "debugobshistory.succnodes": [ |
|
677 "1ae8bc733a14", |
702 "1ae8bc733a14", |
678 "337fec4d2edc", |
703 "337fec4d2edc", |
679 "c7f044602e9b", |
704 "c7f044602e9b", |
680 "f257fde29c7a" |
705 "f257fde29c7a" |
681 ], |
706 ], |
682 "debugobshistory.verb": "rewritten" |
707 "user": "test", |
|
708 "verb": "rewritten" |
683 } |
709 } |
684 ], |
710 ], |
685 "debugobshistory.node": "de7290d8b885", |
711 "node": "de7290d8b885", |
686 "debugobshistory.rev": 1, |
712 "rev": 1, |
687 "debugobshistory.shortdescription": "A0" |
713 "shortdescription": "A0" |
688 } |
714 } |
689 ] |
715 ] |
690 Check that debugobshistory on all heads show a coherent graph |
716 Check that debugobshistory on all heads show a coherent graph |
691 $ hg obslog 2::5 --patch |
717 $ hg obslog 2::5 --patch |
692 o 1ae8bc733a14 (4) A0 |
718 o 1ae8bc733a14 (4) A0 |
823 |
849 |
824 Check that debugobshistory on the second folded revision show only |
850 Check that debugobshistory on the second folded revision show only |
825 the revision with the target |
851 the revision with the target |
826 $ hg obslog --hidden 0dec01379d3b --patch |
852 $ hg obslog --hidden 0dec01379d3b --patch |
827 x 0dec01379d3b (2) B0 |
853 x 0dec01379d3b (2) B0 |
828 rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob) |
854 rewritten(description, parent, content) as eb5a0daa2192 by test (*) (glob) |
829 (No patch available yet, changesets rebased) |
855 (No patch available yet, changesets rebased) |
830 |
856 |
831 Check that with all option, all changesets are shown |
857 Check that with all option, all changesets are shown |
832 $ hg obslog --hidden --all 0dec01379d3b --patch |
858 $ hg obslog --hidden --all 0dec01379d3b --patch |
833 @ eb5a0daa2192 (3) C0 |
859 @ eb5a0daa2192 (3) C0 |
834 |\ |
860 |\ |
835 x | 0dec01379d3b (2) B0 |
861 x | 0dec01379d3b (2) B0 |
836 / rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob) |
862 / rewritten(description, parent, content) as eb5a0daa2192 by test (*) (glob) |
837 | (No patch available yet, changesets rebased) |
863 | (No patch available yet, changesets rebased) |
838 | |
864 | |
839 x 471f378eab4c (1) A0 |
865 x 471f378eab4c (1) A0 |
840 rewritten(description, content) by test (*) as eb5a0daa2192 (glob) |
866 rewritten(description, content) as eb5a0daa2192 by test (*) (glob) |
841 --- a/471f378eab4c-changeset-description |
867 --- a/471f378eab4c-changeset-description |
842 +++ b/eb5a0daa2192-changeset-description |
868 +++ b/eb5a0daa2192-changeset-description |
843 @@ -1,1 +1,1 @@ |
869 @@ -1,1 +1,1 @@ |
844 -A0 |
870 -A0 |
845 +C0 |
871 +C0 |
876 |
902 |
877 |
903 |
878 $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool |
904 $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool |
879 [ |
905 [ |
880 { |
906 { |
881 "debugobshistory.markers": [], |
907 "markers": [], |
882 "debugobshistory.node": "eb5a0daa2192", |
908 "node": "eb5a0daa2192", |
883 "debugobshistory.rev": 3, |
909 "rev": 3, |
884 "debugobshistory.shortdescription": "C0" |
910 "shortdescription": "C0" |
885 }, |
911 }, |
886 { |
912 { |
887 "debugobshistory.markers": [ |
913 "markers": [ |
888 { |
914 { |
889 "debugobshistory.effect": [ |
915 "date": [ |
890 "description", |
916 *, (glob) |
|
917 0 (glob) |
|
918 ], |
|
919 "effect": [ |
|
920 *, (glob) |
891 "content" |
921 "content" |
892 ], |
922 ], |
893 "debugobshistory.marker_date": [ |
923 "succnodes": [ |
894 *, (glob) |
|
895 0 (glob) |
|
896 ], |
|
897 "debugobshistory.marker_user": "test", |
|
898 "debugobshistory.succnodes": [ |
|
899 "eb5a0daa2192" |
924 "eb5a0daa2192" |
900 ], |
925 ], |
901 "debugobshistory.verb": "rewritten" |
926 "user": "test", |
|
927 "verb": "rewritten" |
902 } |
928 } |
903 ], |
929 ], |
904 "debugobshistory.node": "471f378eab4c", |
930 "node": "471f378eab4c", |
905 "debugobshistory.rev": 1, |
931 "rev": 1, |
906 "debugobshistory.shortdescription": "A0" |
932 "shortdescription": "A0" |
907 }, |
933 }, |
908 { |
934 { |
909 "debugobshistory.markers": [ |
935 "markers": [ |
910 { |
936 { |
911 "debugobshistory.effect": [ |
937 "date": [ |
|
938 *, (glob) |
|
939 0 (glob) |
|
940 ], |
|
941 "effect": [ |
912 "description", |
942 "description", |
913 "parent", |
943 "parent", |
914 "content" |
944 "content" |
915 ], |
945 ], |
916 "debugobshistory.marker_date": [ |
946 "succnodes": [ |
917 *, (glob) |
|
918 0 (glob) |
|
919 ], |
|
920 "debugobshistory.marker_user": "test", |
|
921 "debugobshistory.succnodes": [ |
|
922 "eb5a0daa2192" |
947 "eb5a0daa2192" |
923 ], |
948 ], |
924 "debugobshistory.verb": "rewritten" |
949 "user": "test", |
|
950 "verb": "rewritten" |
925 } |
951 } |
926 ], |
952 ], |
927 "debugobshistory.node": "0dec01379d3b", |
953 "node": "0dec01379d3b", |
928 "debugobshistory.rev": 2, |
954 "rev": 2, |
929 "debugobshistory.shortdescription": "B0" |
955 "shortdescription": "B0" |
930 } |
956 } |
931 ] |
957 ] |
932 $ hg update 471f378eab4c |
958 $ hg update 471f378eab4c |
933 abort: hidden revision '471f378eab4c'! |
959 abort: hidden revision '471f378eab4c'! |
934 (use --hidden to access hidden revisions) |
960 (use --hidden to access hidden revisions) |
1036 @ 65b757b745b9 (3) A2 |
1062 @ 65b757b745b9 (3) A2 |
1037 | |
1063 | |
1038 | o fdf9bde5129a (2) A1 |
1064 | o fdf9bde5129a (2) A1 |
1039 |/ |
1065 |/ |
1040 x 471f378eab4c (1) A0 |
1066 x 471f378eab4c (1) A0 |
1041 rewritten(description) by test (*) as 65b757b745b9 (glob) |
1067 rewritten(description) as 65b757b745b9 by test (*) (glob) |
1042 --- a/471f378eab4c-changeset-description |
1068 --- a/471f378eab4c-changeset-description |
1043 +++ b/65b757b745b9-changeset-description |
1069 +++ b/65b757b745b9-changeset-description |
1044 @@ -1,1 +1,1 @@ |
1070 @@ -1,1 +1,1 @@ |
1045 -A0 |
1071 -A0 |
1046 +A2 |
1072 +A2 |
1047 |
1073 |
1048 rewritten(description) by test (*) as fdf9bde5129a (glob) |
1074 rewritten(description) as fdf9bde5129a by test (*) (glob) |
1049 --- a/471f378eab4c-changeset-description |
1075 --- a/471f378eab4c-changeset-description |
1050 +++ b/fdf9bde5129a-changeset-description |
1076 +++ b/fdf9bde5129a-changeset-description |
1051 @@ -1,1 +1,1 @@ |
1077 @@ -1,1 +1,1 @@ |
1052 -A0 |
1078 -A0 |
1053 +A1 |
1079 +A1 |
1054 |
1080 |
1055 |
1081 |
1056 $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | python -m json.tool |
1082 $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | python -m json.tool |
1057 [ |
1083 [ |
1058 { |
1084 { |
1059 "debugobshistory.markers": [ |
1085 "markers": [ |
1060 { |
1086 { |
1061 "debugobshistory.effect": [ |
1087 "date": [ |
|
1088 *, (glob) |
|
1089 0 (glob) |
|
1090 ], |
|
1091 "effect": [ |
1062 "description" |
1092 "description" |
1063 ], |
1093 ], |
1064 "debugobshistory.marker_date": [ |
1094 "succnodes": [ |
1065 *, (glob) |
|
1066 0 (glob) |
|
1067 ], |
|
1068 "debugobshistory.marker_user": "test", |
|
1069 "debugobshistory.succnodes": [ |
|
1070 "65b757b745b9" |
1095 "65b757b745b9" |
1071 ], |
1096 ], |
1072 "debugobshistory.verb": "rewritten" |
1097 "user": "test", |
|
1098 "verb": "rewritten" |
1073 }, |
1099 }, |
1074 { |
1100 { |
1075 "debugobshistory.effect": [ |
1101 "date": [ |
|
1102 *, (glob) |
|
1103 0 (glob) |
|
1104 ], |
|
1105 "effect": [ |
1076 "description" |
1106 "description" |
1077 ], |
1107 ], |
1078 "debugobshistory.marker_date": [ |
1108 "succnodes": [ |
1079 *, (glob) |
|
1080 0 (glob) |
|
1081 ], |
|
1082 "debugobshistory.marker_user": "test", |
|
1083 "debugobshistory.succnodes": [ |
|
1084 "fdf9bde5129a" |
1109 "fdf9bde5129a" |
1085 ], |
1110 ], |
1086 "debugobshistory.verb": "rewritten" |
1111 "user": "test", |
|
1112 "verb": "rewritten" |
1087 } |
1113 } |
1088 ], |
1114 ], |
1089 "debugobshistory.node": "471f378eab4c", |
1115 "node": "471f378eab4c", |
1090 "debugobshistory.rev": 1, |
1116 "rev": 1, |
1091 "debugobshistory.shortdescription": "A0" |
1117 "shortdescription": "A0" |
1092 } |
1118 } |
1093 ] |
1119 ] |
1094 Check that debugobshistory on the first diverged revision show the revision |
1120 Check that debugobshistory on the first diverged revision show the revision |
1095 and the diverent one |
1121 and the diverent one |
1096 $ hg obslog fdf9bde5129a --patch |
1122 $ hg obslog fdf9bde5129a --patch |
1097 o fdf9bde5129a (2) A1 |
1123 o fdf9bde5129a (2) A1 |
1098 | |
1124 | |
1099 x 471f378eab4c (1) A0 |
1125 x 471f378eab4c (1) A0 |
1100 rewritten(description) by test (*) as 65b757b745b9 (glob) |
1126 rewritten(description) as 65b757b745b9 by test (*) (glob) |
1101 --- a/471f378eab4c-changeset-description |
1127 --- a/471f378eab4c-changeset-description |
1102 +++ b/65b757b745b9-changeset-description |
1128 +++ b/65b757b745b9-changeset-description |
1103 @@ -1,1 +1,1 @@ |
1129 @@ -1,1 +1,1 @@ |
1104 -A0 |
1130 -A0 |
1105 +A2 |
1131 +A2 |
1106 |
1132 |
1107 rewritten(description) by test (*) as fdf9bde5129a (glob) |
1133 rewritten(description) as fdf9bde5129a by test (*) (glob) |
1108 --- a/471f378eab4c-changeset-description |
1134 --- a/471f378eab4c-changeset-description |
1109 +++ b/fdf9bde5129a-changeset-description |
1135 +++ b/fdf9bde5129a-changeset-description |
1110 @@ -1,1 +1,1 @@ |
1136 @@ -1,1 +1,1 @@ |
1111 -A0 |
1137 -A0 |
1112 +A1 |
1138 +A1 |
1184 @ 65b757b745b9 (3) A2 |
1210 @ 65b757b745b9 (3) A2 |
1185 | |
1211 | |
1186 | o fdf9bde5129a (2) A1 |
1212 | o fdf9bde5129a (2) A1 |
1187 |/ |
1213 |/ |
1188 x 471f378eab4c (1) A0 |
1214 x 471f378eab4c (1) A0 |
1189 rewritten(description) by test (*) as 65b757b745b9 (glob) |
1215 rewritten(description) as 65b757b745b9 by test (*) (glob) |
1190 --- a/471f378eab4c-changeset-description |
1216 --- a/471f378eab4c-changeset-description |
1191 +++ b/65b757b745b9-changeset-description |
1217 +++ b/65b757b745b9-changeset-description |
1192 @@ -1,1 +1,1 @@ |
1218 @@ -1,1 +1,1 @@ |
1193 -A0 |
1219 -A0 |
1194 +A2 |
1220 +A2 |
1195 |
1221 |
1196 rewritten(description) by test (*) as fdf9bde5129a (glob) |
1222 rewritten(description) as fdf9bde5129a by test (*) (glob) |
1197 --- a/471f378eab4c-changeset-description |
1223 --- a/471f378eab4c-changeset-description |
1198 +++ b/fdf9bde5129a-changeset-description |
1224 +++ b/fdf9bde5129a-changeset-description |
1199 @@ -1,1 +1,1 @@ |
1225 @@ -1,1 +1,1 @@ |
1200 -A0 |
1226 -A0 |
1201 +A1 |
1227 +A1 |
1202 |
1228 |
1203 |
1229 |
1204 $ hg obslog '65b757b745b9+fdf9bde5129a' --no-graph -Tjson | python -m json.tool |
1230 $ hg obslog '65b757b745b9+fdf9bde5129a' --no-graph -Tjson | python -m json.tool |
1205 [ |
1231 [ |
1206 { |
1232 { |
1207 "debugobshistory.markers": [], |
1233 "markers": [], |
1208 "debugobshistory.node": "65b757b745b9", |
1234 "node": "65b757b745b9", |
1209 "debugobshistory.rev": 3, |
1235 "rev": 3, |
1210 "debugobshistory.shortdescription": "A2" |
1236 "shortdescription": "A2" |
1211 }, |
1237 }, |
1212 { |
1238 { |
1213 "debugobshistory.markers": [ |
1239 "markers": [ |
1214 { |
1240 { |
1215 "debugobshistory.effect": [ |
1241 "date": [ |
|
1242 *, (glob) |
|
1243 0 (glob) |
|
1244 ], |
|
1245 "effect": [ |
1216 "description" |
1246 "description" |
1217 ], |
1247 ], |
1218 "debugobshistory.marker_date": [ |
1248 "succnodes": [ |
1219 *, (glob) |
|
1220 0 (glob) |
|
1221 ], |
|
1222 "debugobshistory.marker_user": "test", |
|
1223 "debugobshistory.succnodes": [ |
|
1224 "65b757b745b9" |
1249 "65b757b745b9" |
1225 ], |
1250 ], |
1226 "debugobshistory.verb": "rewritten" |
1251 "user": "test", |
|
1252 "verb": "rewritten" |
1227 }, |
1253 }, |
1228 { |
1254 { |
1229 "debugobshistory.effect": [ |
1255 "date": [ |
|
1256 *, (glob) |
|
1257 0 (glob) |
|
1258 ], |
|
1259 "effect": [ |
1230 "description" |
1260 "description" |
1231 ], |
1261 ], |
1232 "debugobshistory.marker_date": [ |
1262 "succnodes": [ |
1233 *, (glob) |
|
1234 0 (glob) |
|
1235 ], |
|
1236 "debugobshistory.marker_user": "test", |
|
1237 "debugobshistory.succnodes": [ |
|
1238 "fdf9bde5129a" |
1263 "fdf9bde5129a" |
1239 ], |
1264 ], |
1240 "debugobshistory.verb": "rewritten" |
1265 "user": "test", |
|
1266 "verb": "rewritten" |
1241 } |
1267 } |
1242 ], |
1268 ], |
1243 "debugobshistory.node": "471f378eab4c", |
1269 "node": "471f378eab4c", |
1244 "debugobshistory.rev": 1, |
1270 "rev": 1, |
1245 "debugobshistory.shortdescription": "A0" |
1271 "shortdescription": "A0" |
1246 }, |
1272 }, |
1247 { |
1273 { |
1248 "debugobshistory.markers": [], |
1274 "markers": [], |
1249 "debugobshistory.node": "fdf9bde5129a", |
1275 "node": "fdf9bde5129a", |
1250 "debugobshistory.rev": 2, |
1276 "rev": 2, |
1251 "debugobshistory.shortdescription": "A1" |
1277 "shortdescription": "A1" |
1252 } |
1278 } |
1253 ] |
1279 ] |
1254 $ hg update 471f378eab4c |
1280 $ hg update 471f378eab4c |
1255 abort: hidden revision '471f378eab4c'! |
1281 abort: hidden revision '471f378eab4c'! |
1256 (use --hidden to access hidden revisions) |
1282 (use --hidden to access hidden revisions) |
1257 [255] |
1283 [255] |
1258 $ hg update --hidden 'desc(A0)' |
1284 $ hg update --hidden 'desc(A0)' |
1259 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1285 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1260 working directory parent is obsolete! (471f378eab4c) |
1286 working directory parent is obsolete! (471f378eab4c) |
1261 (471f378eab4c has diverged, use 'hg evolve --list --divergent' to resolve the issue) |
1287 (471f378eab4c has diverged, use 'hg evolve --list --contentdivergent' to resolve the issue) |
1262 |
1288 |
1263 Test output with amended + folded commit |
1289 Test output with amended + folded commit |
1264 ======================================== |
1290 ======================================== |
1265 |
1291 |
1266 Test setup |
1292 Test setup |
1380 | @@ -0,0 +1,1 @@ |
1406 | @@ -0,0 +1,1 @@ |
1381 | +B0 |
1407 | +B0 |
1382 | |
1408 | |
1383 | |
1409 | |
1384 x b7ea6d14e664 (3) B1 |
1410 x b7ea6d14e664 (3) B1 |
1385 | rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob) |
1411 | rewritten(description, parent, content) as eb5a0daa2192 by test (*) (glob) |
1386 | (No patch available yet, changesets rebased) |
1412 | (No patch available yet, changesets rebased) |
1387 | |
1413 | |
1388 x 0dec01379d3b (2) B0 |
1414 x 0dec01379d3b (2) B0 |
1389 rewritten(description) by test (*) as b7ea6d14e664 (glob) |
1415 rewritten(description) as b7ea6d14e664 by test (*) (glob) |
1390 --- a/0dec01379d3b-changeset-description |
1416 --- a/0dec01379d3b-changeset-description |
1391 +++ b/b7ea6d14e664-changeset-description |
1417 +++ b/b7ea6d14e664-changeset-description |
1392 @@ -1,1 +1,1 @@ |
1418 @@ -1,1 +1,1 @@ |
1393 -B0 |
1419 -B0 |
1394 +B1 |
1420 +B1 |
1395 |
1421 |
1396 |
1422 |
1397 $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool |
1423 $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool |
1398 [ |
1424 [ |
1399 { |
1425 { |
1400 "debugobshistory.markers": [], |
1426 "markers": [], |
1401 "debugobshistory.node": "eb5a0daa2192", |
1427 "node": "eb5a0daa2192", |
1402 "debugobshistory.rev": 4, |
1428 "rev": 4, |
1403 "debugobshistory.shortdescription": "C0" |
1429 "shortdescription": "C0" |
1404 }, |
1430 }, |
1405 { |
1431 { |
1406 "debugobshistory.markers": [ |
1432 "markers": [ |
1407 { |
1433 { |
1408 "debugobshistory.effect": [ |
1434 "date": [ |
|
1435 *, (glob) |
|
1436 0 (glob) |
|
1437 ], |
|
1438 "effect": [ |
1409 *, (glob) |
1439 *, (glob) |
1410 *, (glob) |
1440 *, (glob) |
1411 "content" |
1441 "content" |
1412 ], |
1442 ], |
1413 "debugobshistory.marker_date": [ |
1443 "succnodes": [ |
1414 *, (glob) |
|
1415 0 (glob) |
|
1416 ], |
|
1417 "debugobshistory.marker_user": "test", |
|
1418 "debugobshistory.succnodes": [ |
|
1419 "eb5a0daa2192" |
1444 "eb5a0daa2192" |
1420 ], |
1445 ], |
1421 "debugobshistory.verb": "rewritten" |
1446 "user": "test", |
|
1447 "verb": "rewritten" |
1422 } |
1448 } |
1423 ], |
1449 ], |
1424 "debugobshistory.node": "b7ea6d14e664", |
1450 "node": "b7ea6d14e664", |
1425 "debugobshistory.rev": 3, |
1451 "rev": 3, |
1426 "debugobshistory.shortdescription": "B1" |
1452 "shortdescription": "B1" |
1427 }, |
1453 }, |
1428 { |
1454 { |
1429 "debugobshistory.markers": [ |
1455 "markers": [ |
1430 { |
1456 { |
1431 "debugobshistory.effect": [ |
1457 "date": [ |
|
1458 *, (glob) |
|
1459 0 (glob) |
|
1460 ], |
|
1461 "effect": [ |
1432 "description" |
1462 "description" |
1433 ], |
1463 ], |
1434 "debugobshistory.marker_date": [ |
1464 "succnodes": [ |
1435 *, (glob) |
|
1436 0 (glob) |
|
1437 ], |
|
1438 "debugobshistory.marker_user": "test", |
|
1439 "debugobshistory.succnodes": [ |
|
1440 "b7ea6d14e664" |
1465 "b7ea6d14e664" |
1441 ], |
1466 ], |
1442 "debugobshistory.verb": "rewritten" |
1467 "user": "test", |
|
1468 "verb": "rewritten" |
1443 } |
1469 } |
1444 ], |
1470 ], |
1445 "debugobshistory.node": "0dec01379d3b", |
1471 "node": "0dec01379d3b", |
1446 "debugobshistory.rev": 2, |
1472 "rev": 2, |
1447 "debugobshistory.shortdescription": "B0" |
1473 "shortdescription": "B0" |
1448 }, |
1474 }, |
1449 { |
1475 { |
1450 "debugobshistory.markers": [ |
1476 "markers": [ |
1451 { |
1477 { |
1452 "debugobshistory.effect": [ |
1478 "date": [ |
|
1479 *, (glob) |
|
1480 0 (glob) |
|
1481 ], |
|
1482 "effect": [ |
1453 "description", |
1483 "description", |
1454 "content" |
1484 "content" |
1455 ], |
1485 ], |
1456 "debugobshistory.marker_date": [ |
1486 "succnodes": [ |
1457 *, (glob) |
|
1458 0 (glob) |
|
1459 ], |
|
1460 "debugobshistory.marker_user": "test", |
|
1461 "debugobshistory.succnodes": [ |
|
1462 "eb5a0daa2192" |
1487 "eb5a0daa2192" |
1463 ], |
1488 ], |
1464 "debugobshistory.verb": "rewritten" |
1489 "user": "test", |
|
1490 "verb": "rewritten" |
1465 } |
1491 } |
1466 ], |
1492 ], |
1467 "debugobshistory.node": "471f378eab4c", |
1493 "node": "471f378eab4c", |
1468 "debugobshistory.rev": 1, |
1494 "rev": 1, |
1469 "debugobshistory.shortdescription": "A0" |
1495 "shortdescription": "A0" |
1470 } |
1496 } |
1471 ] |
1497 ] |
1472 $ hg update 471f378eab4c |
1498 $ hg update 471f378eab4c |
1473 abort: hidden revision '471f378eab4c'! |
1499 abort: hidden revision '471f378eab4c'! |
1474 (use --hidden to access hidden revisions) |
1500 (use --hidden to access hidden revisions) |
1595 changectx |
1621 changectx |
1596 $ hg obslog 7a230b46bf61 --patch |
1622 $ hg obslog 7a230b46bf61 --patch |
1597 o 7a230b46bf61 (2) A2 |
1623 o 7a230b46bf61 (2) A2 |
1598 | |
1624 | |
1599 x fdf9bde5129a |
1625 x fdf9bde5129a |
1600 | rewritten(description) by test (*) as 7a230b46bf61 (glob) |
1626 | rewritten(description) as 7a230b46bf61 by test (*) (glob) |
1601 | (No patch available yet, context is not local) |
1627 | (No patch available yet, context is not local) |
1602 | |
1628 | |
1603 @ 471f378eab4c (1) A0 |
1629 @ 471f378eab4c (1) A0 |
1604 rewritten(description) by test (*) as fdf9bde5129a (glob) |
1630 rewritten(description) as fdf9bde5129a by test (*) (glob) |
1605 (No patch available yet, succ is unknown locally) |
1631 (No patch available yet, succ is unknown locally) |
1606 |
1632 |
1607 $ hg obslog 7a230b46bf61 --color=debug --patch |
1633 $ hg obslog 7a230b46bf61 --color=debug --patch |
1608 o [evolve.node|7a230b46bf61] [evolve.rev|(2)] [evolve.short_description|A2] |
1634 o [evolve.node|7a230b46bf61] [evolve.rev|(2)] [evolve.short_description|A2] |
1609 | |
1635 | |
1610 x [evolve.node evolve.missing_change_ctx|fdf9bde5129a] |
1636 x [evolve.node evolve.missing_change_ctx|fdf9bde5129a] |
1611 | [evolve.verb|rewritten](description) by [evolve.user|test] [evolve.date|(*)] as [evolve.node|7a230b46bf61] (glob) |
1637 | [evolve.verb|rewritten](description) as [evolve.node|7a230b46bf61] by [evolve.user|test] [evolve.date|(*)] (glob) |
1612 | (No patch available yet, context is not local) |
1638 | (No patch available yet, context is not local) |
1613 | |
1639 | |
1614 @ [evolve.node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0] |
1640 @ [evolve.node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0] |
1615 [evolve.verb|rewritten](description) by [evolve.user|test] [evolve.date|(*)] as [evolve.node|fdf9bde5129a] (glob) |
1641 [evolve.verb|rewritten](description) as [evolve.node|fdf9bde5129a] by [evolve.user|test] [evolve.date|(*)] (glob) |
1616 (No patch available yet, succ is unknown locally) |
1642 (No patch available yet, succ is unknown locally) |
1617 |
1643 |