307 ----------- |
317 ----------- |
308 |
318 |
309 Check that debugobshistory on splitted commit show both targets |
319 Check that debugobshistory on splitted commit show both targets |
310 $ hg obslog 471597cad322 --hidden |
320 $ hg obslog 471597cad322 --hidden |
311 x 471597cad322 (1) A0 |
321 x 471597cad322 (1) A0 |
312 rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
322 rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
313 |
323 |
314 $ hg obslog 471597cad322 --hidden --no-graph -Tjson | python -m json.tool |
324 $ hg obslog 471597cad322 --hidden --no-graph -Tjson | python -m json.tool |
315 [ |
325 [ |
316 { |
326 { |
317 "debugobshistory.markers": [ |
327 "debugobshistory.markers": [ |
318 { |
328 { |
|
329 "debugobshistory.effect": [ |
|
330 "parent", |
|
331 "content" |
|
332 ], |
319 "debugobshistory.marker_date": [ |
333 "debugobshistory.marker_date": [ |
320 *, (glob) |
334 *, (glob) |
321 0 (glob) |
335 0 (glob) |
322 ], |
336 ], |
323 "debugobshistory.marker_user": "test", |
337 "debugobshistory.marker_user": "test", |
337 the revision plus the splitted one |
351 the revision plus the splitted one |
338 $ hg obslog 337fec4d2edc |
352 $ hg obslog 337fec4d2edc |
339 o 337fec4d2edc (2) A0 |
353 o 337fec4d2edc (2) A0 |
340 | |
354 | |
341 x 471597cad322 (1) A0 |
355 x 471597cad322 (1) A0 |
342 rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
356 rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
343 |
357 |
344 With the all option, it should show the three changesets |
358 With the all option, it should show the three changesets |
345 $ hg obslog --all 337fec4d2edc |
359 $ hg obslog --all 337fec4d2edc |
346 o 337fec4d2edc (2) A0 |
360 o 337fec4d2edc (2) A0 |
347 | |
361 | |
348 | @ f257fde29c7a (3) A0 |
362 | @ f257fde29c7a (3) A0 |
349 |/ |
363 |/ |
350 x 471597cad322 (1) A0 |
364 x 471597cad322 (1) A0 |
351 rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
365 rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
352 |
366 |
353 Check that debugobshistory on the second successor after split show |
367 Check that debugobshistory on the second successor after split show |
354 the revision plus the splitted one |
368 the revision plus the splitted one |
355 $ hg obslog f257fde29c7a |
369 $ hg obslog f257fde29c7a |
356 @ f257fde29c7a (3) A0 |
370 @ f257fde29c7a (3) A0 |
357 | |
371 | |
358 x 471597cad322 (1) A0 |
372 x 471597cad322 (1) A0 |
359 rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
373 rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
360 |
374 |
361 With the all option, it should show the three changesets |
375 With the all option, it should show the three changesets |
362 $ hg obslog f257fde29c7a --all |
376 $ hg obslog f257fde29c7a --all |
363 o 337fec4d2edc (2) A0 |
377 o 337fec4d2edc (2) A0 |
364 | |
378 | |
365 | @ f257fde29c7a (3) A0 |
379 | @ f257fde29c7a (3) A0 |
366 |/ |
380 |/ |
367 x 471597cad322 (1) A0 |
381 x 471597cad322 (1) A0 |
368 rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
382 rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
369 |
383 |
370 Obslog with all option all should also works on the splitted commit |
384 Obslog with all option all should also works on the splitted commit |
371 $ hg obslog -a 471597cad322 --hidden |
385 $ hg obslog -a 471597cad322 --hidden |
372 o 337fec4d2edc (2) A0 |
386 o 337fec4d2edc (2) A0 |
373 | |
387 | |
374 | @ f257fde29c7a (3) A0 |
388 | @ f257fde29c7a (3) A0 |
375 |/ |
389 |/ |
376 x 471597cad322 (1) A0 |
390 x 471597cad322 (1) A0 |
377 rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
391 rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
378 |
392 |
379 Check that debugobshistory on both successors after split show |
393 Check that debugobshistory on both successors after split show |
380 a coherent graph |
394 a coherent graph |
381 $ hg obslog 'f257fde29c7a+337fec4d2edc' |
395 $ hg obslog 'f257fde29c7a+337fec4d2edc' |
382 o 337fec4d2edc (2) A0 |
396 o 337fec4d2edc (2) A0 |
383 | |
397 | |
384 | @ f257fde29c7a (3) A0 |
398 | @ f257fde29c7a (3) A0 |
385 |/ |
399 |/ |
386 x 471597cad322 (1) A0 |
400 x 471597cad322 (1) A0 |
387 rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
401 rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob) |
388 |
402 |
389 $ hg update 471597cad322 |
403 $ hg update 471597cad322 |
390 abort: hidden revision '471597cad322'! |
404 abort: hidden revision '471597cad322'! |
391 (use --hidden to access hidden revisions) |
405 (use --hidden to access hidden revisions) |
392 [255] |
406 [255] |
560 | @ c7f044602e9b (5) A0 |
574 | @ c7f044602e9b (5) A0 |
561 |/ |
575 |/ |
562 | o f257fde29c7a (3) A0 |
576 | o f257fde29c7a (3) A0 |
563 |/ |
577 |/ |
564 x de7290d8b885 (1) A0 |
578 x de7290d8b885 (1) A0 |
565 rewritten by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob) |
579 rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob) |
566 |
580 |
567 $ hg obslog de7290d8b885 --hidden --no-graph -Tjson | python -m json.tool |
581 $ hg obslog de7290d8b885 --hidden --no-graph -Tjson | python -m json.tool |
568 [ |
582 [ |
569 { |
583 { |
570 "debugobshistory.markers": [ |
584 "debugobshistory.markers": [ |
571 { |
585 { |
|
586 "debugobshistory.effect": [ |
|
587 "parent", |
|
588 "content" |
|
589 ], |
572 "debugobshistory.marker_date": [ |
590 "debugobshistory.marker_date": [ |
573 *, (glob) |
591 *, (glob) |
574 0 (glob) |
592 0 (glob) |
575 ], |
593 ], |
576 "debugobshistory.marker_user": "test", |
594 "debugobshistory.marker_user": "test", |
717 |
739 |
718 Check that debugobshistory on the first folded revision show only |
740 Check that debugobshistory on the first folded revision show only |
719 the revision with the target |
741 the revision with the target |
720 $ hg obslog --hidden 471f378eab4c |
742 $ hg obslog --hidden 471f378eab4c |
721 x 471f378eab4c (1) A0 |
743 x 471f378eab4c (1) A0 |
722 rewritten by test (*) as eb5a0daa2192 (glob) |
744 rewritten(description, content) by test (*) as eb5a0daa2192 (glob) |
723 |
745 |
724 Check that with all option, all changesets are shown |
746 Check that with all option, all changesets are shown |
725 $ hg obslog --hidden --all 471f378eab4c |
747 $ hg obslog --hidden --all 471f378eab4c |
726 @ eb5a0daa2192 (3) C0 |
748 @ eb5a0daa2192 (3) C0 |
727 |\ |
749 |\ |
728 x | 0dec01379d3b (2) B0 |
750 x | 0dec01379d3b (2) B0 |
729 / rewritten by test (*) as eb5a0daa2192 (glob) |
751 / rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob) |
730 | |
752 | |
731 x 471f378eab4c (1) A0 |
753 x 471f378eab4c (1) A0 |
732 rewritten by test (*) as eb5a0daa2192 (glob) |
754 rewritten(description, content) by test (*) as eb5a0daa2192 (glob) |
733 |
755 |
734 Check that debugobshistory on the second folded revision show only |
756 Check that debugobshistory on the second folded revision show only |
735 the revision with the target |
757 the revision with the target |
736 $ hg obslog --hidden 0dec01379d3b |
758 $ hg obslog --hidden 0dec01379d3b |
737 x 0dec01379d3b (2) B0 |
759 x 0dec01379d3b (2) B0 |
738 rewritten by test (*) as eb5a0daa2192 (glob) |
760 rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob) |
739 |
761 |
740 Check that with all option, all changesets are shown |
762 Check that with all option, all changesets are shown |
741 $ hg obslog --hidden --all 0dec01379d3b |
763 $ hg obslog --hidden --all 0dec01379d3b |
742 @ eb5a0daa2192 (3) C0 |
764 @ eb5a0daa2192 (3) C0 |
743 |\ |
765 |\ |
744 x | 0dec01379d3b (2) B0 |
766 x | 0dec01379d3b (2) B0 |
745 / rewritten by test (*) as eb5a0daa2192 (glob) |
767 / rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob) |
746 | |
768 | |
747 x 471f378eab4c (1) A0 |
769 x 471f378eab4c (1) A0 |
748 rewritten by test (*) as eb5a0daa2192 (glob) |
770 rewritten(description, content) by test (*) as eb5a0daa2192 (glob) |
749 |
771 |
750 Check that debugobshistory on the successor revision show a coherent |
772 Check that debugobshistory on the successor revision show a coherent |
751 graph |
773 graph |
752 $ hg obslog eb5a0daa2192 |
774 $ hg obslog eb5a0daa2192 |
753 @ eb5a0daa2192 (3) C0 |
775 @ eb5a0daa2192 (3) C0 |
754 |\ |
776 |\ |
755 x | 0dec01379d3b (2) B0 |
777 x | 0dec01379d3b (2) B0 |
756 / rewritten by test (*) as eb5a0daa2192 (glob) |
778 / rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob) |
757 | |
779 | |
758 x 471f378eab4c (1) A0 |
780 x 471f378eab4c (1) A0 |
759 rewritten by test (*) as eb5a0daa2192 (glob) |
781 rewritten(description, content) by test (*) as eb5a0daa2192 (glob) |
760 |
782 |
761 $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool |
783 $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool |
762 [ |
784 [ |
763 { |
785 { |
764 "debugobshistory.markers": [], |
786 "debugobshistory.markers": [], |
887 ----------- |
918 ----------- |
888 |
919 |
889 Check that debugobshistory on the divergent revision show both destinations |
920 Check that debugobshistory on the divergent revision show both destinations |
890 $ hg obslog --hidden 471f378eab4c |
921 $ hg obslog --hidden 471f378eab4c |
891 x 471f378eab4c (1) A0 |
922 x 471f378eab4c (1) A0 |
892 rewritten by test (*) as 65b757b745b9 (glob) |
923 rewritten(description) by test (*) as 65b757b745b9 (glob) |
893 rewritten by test (*) as fdf9bde5129a (glob) |
924 rewritten(description) by test (*) as fdf9bde5129a (glob) |
894 |
925 |
895 |
926 |
896 Check that with all option, every changeset is shown |
927 Check that with all option, every changeset is shown |
897 $ hg obslog --hidden --all 471f378eab4c |
928 $ hg obslog --hidden --all 471f378eab4c |
898 @ 65b757b745b9 (3) A2 |
929 @ 65b757b745b9 (3) A2 |
899 | |
930 | |
900 | o fdf9bde5129a (2) A1 |
931 | o fdf9bde5129a (2) A1 |
901 |/ |
932 |/ |
902 x 471f378eab4c (1) A0 |
933 x 471f378eab4c (1) A0 |
903 rewritten by test (*) as 65b757b745b9 (glob) |
934 rewritten(description) by test (*) as 65b757b745b9 (glob) |
904 rewritten by test (*) as fdf9bde5129a (glob) |
935 rewritten(description) by test (*) as fdf9bde5129a (glob) |
905 |
936 |
906 $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | python -m json.tool |
937 $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | python -m json.tool |
907 [ |
938 [ |
908 { |
939 { |
909 "debugobshistory.markers": [ |
940 "debugobshistory.markers": [ |
910 { |
941 { |
|
942 "debugobshistory.effect": [ |
|
943 "description" |
|
944 ], |
911 "debugobshistory.marker_date": [ |
945 "debugobshistory.marker_date": [ |
912 *, (glob) |
946 *, (glob) |
913 0 (glob) |
947 0 (glob) |
914 ], |
948 ], |
915 "debugobshistory.marker_user": "test", |
949 "debugobshistory.marker_user": "test", |
939 and the diverent one |
976 and the diverent one |
940 $ hg obslog fdf9bde5129a |
977 $ hg obslog fdf9bde5129a |
941 o fdf9bde5129a (2) A1 |
978 o fdf9bde5129a (2) A1 |
942 | |
979 | |
943 x 471f378eab4c (1) A0 |
980 x 471f378eab4c (1) A0 |
944 rewritten by test (*) as 65b757b745b9 (glob) |
981 rewritten(description) by test (*) as 65b757b745b9 (glob) |
945 rewritten by test (*) as fdf9bde5129a (glob) |
982 rewritten(description) by test (*) as fdf9bde5129a (glob) |
946 |
983 |
947 |
984 |
948 Check that all option show all of them |
985 Check that all option show all of them |
949 $ hg obslog fdf9bde5129a -a |
986 $ hg obslog fdf9bde5129a -a |
950 @ 65b757b745b9 (3) A2 |
987 @ 65b757b745b9 (3) A2 |
951 | |
988 | |
952 | o fdf9bde5129a (2) A1 |
989 | o fdf9bde5129a (2) A1 |
953 |/ |
990 |/ |
954 x 471f378eab4c (1) A0 |
991 x 471f378eab4c (1) A0 |
955 rewritten by test (*) as 65b757b745b9 (glob) |
992 rewritten(description) by test (*) as 65b757b745b9 (glob) |
956 rewritten by test (*) as fdf9bde5129a (glob) |
993 rewritten(description) by test (*) as fdf9bde5129a (glob) |
957 |
994 |
958 Check that debugobshistory on the second diverged revision show the revision |
995 Check that debugobshistory on the second diverged revision show the revision |
959 and the diverent one |
996 and the diverent one |
960 $ hg obslog 65b757b745b9 |
997 $ hg obslog 65b757b745b9 |
961 @ 65b757b745b9 (3) A2 |
998 @ 65b757b745b9 (3) A2 |
962 | |
999 | |
963 x 471f378eab4c (1) A0 |
1000 x 471f378eab4c (1) A0 |
964 rewritten by test (*) as 65b757b745b9 (glob) |
1001 rewritten(description) by test (*) as 65b757b745b9 (glob) |
965 rewritten by test (*) as fdf9bde5129a (glob) |
1002 rewritten(description) by test (*) as fdf9bde5129a (glob) |
966 |
1003 |
967 Check that all option show all of them |
1004 Check that all option show all of them |
968 $ hg obslog 65b757b745b9 -a |
1005 $ hg obslog 65b757b745b9 -a |
969 @ 65b757b745b9 (3) A2 |
1006 @ 65b757b745b9 (3) A2 |
970 | |
1007 | |
971 | o fdf9bde5129a (2) A1 |
1008 | o fdf9bde5129a (2) A1 |
972 |/ |
1009 |/ |
973 x 471f378eab4c (1) A0 |
1010 x 471f378eab4c (1) A0 |
974 rewritten by test (*) as 65b757b745b9 (glob) |
1011 rewritten(description) by test (*) as 65b757b745b9 (glob) |
975 rewritten by test (*) as fdf9bde5129a (glob) |
1012 rewritten(description) by test (*) as fdf9bde5129a (glob) |
976 |
1013 |
977 Check that debugobshistory on the both diverged revision show a coherent |
1014 Check that debugobshistory on the both diverged revision show a coherent |
978 graph |
1015 graph |
979 $ hg obslog '65b757b745b9+fdf9bde5129a' |
1016 $ hg obslog '65b757b745b9+fdf9bde5129a' |
980 @ 65b757b745b9 (3) A2 |
1017 @ 65b757b745b9 (3) A2 |
981 | |
1018 | |
982 | o fdf9bde5129a (2) A1 |
1019 | o fdf9bde5129a (2) A1 |
983 |/ |
1020 |/ |
984 x 471f378eab4c (1) A0 |
1021 x 471f378eab4c (1) A0 |
985 rewritten by test (*) as 65b757b745b9 (glob) |
1022 rewritten(description) by test (*) as 65b757b745b9 (glob) |
986 rewritten by test (*) as fdf9bde5129a (glob) |
1023 rewritten(description) by test (*) as fdf9bde5129a (glob) |
987 |
1024 |
988 $ hg obslog '65b757b745b9+fdf9bde5129a' --no-graph -Tjson | python -m json.tool |
1025 $ hg obslog '65b757b745b9+fdf9bde5129a' --no-graph -Tjson | python -m json.tool |
989 [ |
1026 [ |
990 { |
1027 { |
991 "debugobshistory.markers": [], |
1028 "debugobshistory.markers": [], |
1034 (use --hidden to access hidden revisions) |
1077 (use --hidden to access hidden revisions) |
1035 [255] |
1078 [255] |
1036 $ hg update --hidden 'desc(A0)' |
1079 $ hg update --hidden 'desc(A0)' |
1037 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1080 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1038 working directory parent is obsolete! (471f378eab4c) |
1081 working directory parent is obsolete! (471f378eab4c) |
1039 (471f378eab4c has diverged, use 'hg evolve -list --divergent' to resolve the issue) |
1082 (471f378eab4c has diverged, use 'hg evolve --list --divergent' to resolve the issue) |
1040 |
1083 |
1041 Test output with amended + folded commit |
1084 Test output with amended + folded commit |
1042 ======================================== |
1085 ======================================== |
1043 |
1086 |
1044 Test setup |
1087 Test setup |
1111 Check that debugobshistory on head show a coherent graph |
1154 Check that debugobshistory on head show a coherent graph |
1112 $ hg obslog eb5a0daa2192 |
1155 $ hg obslog eb5a0daa2192 |
1113 @ eb5a0daa2192 (4) C0 |
1156 @ eb5a0daa2192 (4) C0 |
1114 |\ |
1157 |\ |
1115 x | 471f378eab4c (1) A0 |
1158 x | 471f378eab4c (1) A0 |
1116 / rewritten by test (*) as eb5a0daa2192 (glob) |
1159 / rewritten(description, content) by test (*) as eb5a0daa2192 (glob) |
1117 | |
1160 | |
1118 x b7ea6d14e664 (3) B1 |
1161 x b7ea6d14e664 (3) B1 |
1119 | rewritten by test (*) as eb5a0daa2192 (glob) |
1162 | rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob) |
1120 | |
1163 | |
1121 x 0dec01379d3b (2) B0 |
1164 x 0dec01379d3b (2) B0 |
1122 rewritten by test (*) as b7ea6d14e664 (glob) |
1165 rewritten(description) by test (*) as b7ea6d14e664 (glob) |
1123 |
1166 |
1124 Check that obslog on ROOT with all option show everything |
1167 Check that obslog on ROOT with all option show everything |
1125 $ hg obslog 1 --hidden --all |
1168 $ hg obslog 1 --hidden --all |
1126 @ eb5a0daa2192 (4) C0 |
1169 @ eb5a0daa2192 (4) C0 |
1127 |\ |
1170 |\ |
1128 x | 471f378eab4c (1) A0 |
1171 x | 471f378eab4c (1) A0 |
1129 / rewritten by test (*) as eb5a0daa2192 (glob) |
1172 / rewritten(description, content) by test (*) as eb5a0daa2192 (glob) |
1130 | |
1173 | |
1131 x b7ea6d14e664 (3) B1 |
1174 x b7ea6d14e664 (3) B1 |
1132 | rewritten by test (*) as eb5a0daa2192 (glob) |
1175 | rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob) |
1133 | |
1176 | |
1134 x 0dec01379d3b (2) B0 |
1177 x 0dec01379d3b (2) B0 |
1135 rewritten by test (*) as b7ea6d14e664 (glob) |
1178 rewritten(description) by test (*) as b7ea6d14e664 (glob) |
1136 |
1179 |
1137 $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool |
1180 $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool |
1138 [ |
1181 [ |
1139 { |
1182 { |
1140 "debugobshistory.markers": [], |
1183 "debugobshistory.markers": [], |
1311 changectx |
1366 changectx |
1312 $ hg obslog 7a230b46bf61 |
1367 $ hg obslog 7a230b46bf61 |
1313 o 7a230b46bf61 (2) A2 |
1368 o 7a230b46bf61 (2) A2 |
1314 | |
1369 | |
1315 x fdf9bde5129a |
1370 x fdf9bde5129a |
1316 | rewritten by test (*) as 7a230b46bf61 (glob) |
1371 | rewritten(description) by test (*) as 7a230b46bf61 (glob) |
1317 | |
1372 | |
1318 @ 471f378eab4c (1) A0 |
1373 @ 471f378eab4c (1) A0 |
1319 rewritten by test (*) as fdf9bde5129a (glob) |
1374 rewritten(description) by test (*) as fdf9bde5129a (glob) |
1320 |
1375 |
1321 $ hg obslog 7a230b46bf61 --color=debug |
1376 $ hg obslog 7a230b46bf61 --color=debug |
1322 o [evolve.node|7a230b46bf61] [evolve.rev|(2)] [evolve.short_description|A2] |
1377 o [evolve.node|7a230b46bf61] [evolve.rev|(2)] [evolve.short_description|A2] |
1323 | |
1378 | |
1324 x [evolve.node evolve.missing_change_ctx|fdf9bde5129a] |
1379 x [evolve.node evolve.missing_change_ctx|fdf9bde5129a] |
1325 | [evolve.verb|rewritten] by [evolve.user|test] [evolve.date|(*)] as [evolve.node|7a230b46bf61] (glob) |
1380 | [evolve.verb|rewritten](description) by [evolve.user|test] [evolve.date|(*)] as [evolve.node|7a230b46bf61] (glob) |
1326 | |
1381 | |
1327 @ [evolve.node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0] |
1382 @ [evolve.node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0] |
1328 [evolve.verb|rewritten] by [evolve.user|test] [evolve.date|(*)] as [evolve.node|fdf9bde5129a] (glob) |
1383 [evolve.verb|rewritten](description) by [evolve.user|test] [evolve.date|(*)] as [evolve.node|fdf9bde5129a] (glob) |
1329 |
1384 |