tests/test-evolve-obshistory.t
branchmercurial-4.0
changeset 2596 44dd9d76afb2
parent 2532 ca157d06b2dc
parent 2595 54ac473663ff
child 2701 26ec0839865b
--- a/tests/test-evolve-obshistory.t	Wed May 31 14:23:45 2017 +0200
+++ b/tests/test-evolve-obshistory.t	Fri Jun 16 11:50:19 2017 +0200
@@ -13,6 +13,8 @@
   > [extensions]
   > evolve =
   > color =
+  > [experimental]
+  > evolution.effect-flags = yes
   > EOF
 
 Test output on amended commit
@@ -58,7 +60,7 @@
   @  4ae3a4151de9 (3) A1
   |
   x  471f378eab4c (1) A0
-       rewritten by test (*) as 4ae3a4151de9 (glob)
+       rewritten(description, content) by test (*) as 4ae3a4151de9 (glob)
   
   $ hg obslog 4ae3a4151de9 --no-graph -Tjson | python -m json.tool
   [
@@ -71,6 +73,10 @@
       {
           "debugobshistory.markers": [
               {
+                  "debugobshistory.effect": [
+                      "description",
+                      "content"
+                  ],
                   "debugobshistory.marker_date": [
                       *, (glob)
                       0 (glob)
@@ -89,13 +95,17 @@
   ]
   $ hg obslog --hidden 471f378eab4c
   x  471f378eab4c (1) A0
-       rewritten by test (*) as 4ae3a4151de9 (glob)
+       rewritten(description, content) by test (*) as 4ae3a4151de9 (glob)
   
   $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | python -m json.tool
   [
       {
           "debugobshistory.markers": [
               {
+                  "debugobshistory.effect": [
+                      *, (glob)
+                      "content"
+                  ],
                   "debugobshistory.marker_date": [
                       *, (glob)
                       0 (glob)
@@ -309,13 +319,17 @@
 Check that debugobshistory on splitted commit show both targets
   $ hg obslog 471597cad322 --hidden
   x  471597cad322 (1) A0
-       rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob)
+       rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   
   $ hg obslog 471597cad322 --hidden --no-graph -Tjson | python -m json.tool
   [
       {
           "debugobshistory.markers": [
               {
+                  "debugobshistory.effect": [
+                      "parent",
+                      "content"
+                  ],
                   "debugobshistory.marker_date": [
                       *, (glob)
                       0 (glob)
@@ -339,7 +353,7 @@
   o  337fec4d2edc (2) A0
   |
   x  471597cad322 (1) A0
-       rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob)
+       rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   
 With the all option, it should show the three changesets
   $ hg obslog --all 337fec4d2edc
@@ -348,7 +362,7 @@
   | @  f257fde29c7a (3) A0
   |/
   x  471597cad322 (1) A0
-       rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob)
+       rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   
 Check that debugobshistory on the second successor after split show
 the revision plus the splitted one
@@ -356,7 +370,7 @@
   @  f257fde29c7a (3) A0
   |
   x  471597cad322 (1) A0
-       rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob)
+       rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   
 With the all option, it should show the three changesets
   $ hg obslog f257fde29c7a --all
@@ -365,7 +379,7 @@
   | @  f257fde29c7a (3) A0
   |/
   x  471597cad322 (1) A0
-       rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob)
+       rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   
 Obslog with all option all should also works on the splitted commit
   $ hg obslog -a 471597cad322 --hidden
@@ -374,7 +388,7 @@
   | @  f257fde29c7a (3) A0
   |/
   x  471597cad322 (1) A0
-       rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob)
+       rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   
 Check that debugobshistory on both successors after split show
 a coherent graph
@@ -384,7 +398,7 @@
   | @  f257fde29c7a (3) A0
   |/
   x  471597cad322 (1) A0
-       rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob)
+       rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   
   $ hg update 471597cad322
   abort: hidden revision '471597cad322'!
@@ -550,7 +564,7 @@
 
   $ hg obslog de7290d8b885 --hidden
   x  de7290d8b885 (1) A0
-       rewritten by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
+       rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   
   $ hg obslog de7290d8b885 --hidden --all
   o  1ae8bc733a14 (4) A0
@@ -562,13 +576,17 @@
   | o  f257fde29c7a (3) A0
   |/
   x  de7290d8b885 (1) A0
-       rewritten by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
+       rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   
   $ hg obslog de7290d8b885 --hidden --no-graph -Tjson | python -m json.tool
   [
       {
           "debugobshistory.markers": [
               {
+                  "debugobshistory.effect": [
+                      "parent",
+                      "content"
+                  ],
                   "debugobshistory.marker_date": [
                       *, (glob)
                       0 (glob)
@@ -592,7 +610,7 @@
   @  c7f044602e9b (5) A0
   |
   x  de7290d8b885 (1) A0
-       rewritten by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
+       rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   
   $ hg obslog c7f044602e9b --no-graph -Tjson | python -m json.tool
   [
@@ -605,6 +623,10 @@
       {
           "debugobshistory.markers": [
               {
+                  "debugobshistory.effect": [
+                      "parent",
+                      "content"
+                  ],
                   "debugobshistory.marker_date": [
                       *, (glob)
                       0 (glob)
@@ -635,7 +657,7 @@
   | o  f257fde29c7a (3) A0
   |/
   x  de7290d8b885 (1) A0
-       rewritten by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
+       rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   
   $ hg obslog 5 --all
   o  1ae8bc733a14 (4) A0
@@ -647,7 +669,7 @@
   | o  f257fde29c7a (3) A0
   |/
   x  de7290d8b885 (1) A0
-       rewritten by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
+       rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   
   $ hg update de7290d8b885
   abort: hidden revision 'de7290d8b885'!
@@ -719,33 +741,33 @@
 the revision with the target
   $ hg obslog --hidden 471f378eab4c
   x  471f378eab4c (1) A0
-       rewritten by test (*) as eb5a0daa2192 (glob)
+       rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
   
 Check that with all option, all changesets are shown
   $ hg obslog --hidden --all 471f378eab4c
   @    eb5a0daa2192 (3) C0
   |\
   x |  0dec01379d3b (2) B0
-   /     rewritten by test (*) as eb5a0daa2192 (glob)
+   /     rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
   |
   x  471f378eab4c (1) A0
-       rewritten by test (*) as eb5a0daa2192 (glob)
+       rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
   
 Check that debugobshistory on the second folded revision show only
 the revision with the target
   $ hg obslog --hidden 0dec01379d3b
   x  0dec01379d3b (2) B0
-       rewritten by test (*) as eb5a0daa2192 (glob)
+       rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
   
 Check that with all option, all changesets are shown
   $ hg obslog --hidden --all 0dec01379d3b
   @    eb5a0daa2192 (3) C0
   |\
   x |  0dec01379d3b (2) B0
-   /     rewritten by test (*) as eb5a0daa2192 (glob)
+   /     rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
   |
   x  471f378eab4c (1) A0
-       rewritten by test (*) as eb5a0daa2192 (glob)
+       rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
   
 Check that debugobshistory on the successor revision show a coherent
 graph
@@ -753,10 +775,10 @@
   @    eb5a0daa2192 (3) C0
   |\
   x |  0dec01379d3b (2) B0
-   /     rewritten by test (*) as eb5a0daa2192 (glob)
+   /     rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
   |
   x  471f378eab4c (1) A0
-       rewritten by test (*) as eb5a0daa2192 (glob)
+       rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
   
   $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool
   [
@@ -769,6 +791,10 @@
       {
           "debugobshistory.markers": [
               {
+                  "debugobshistory.effect": [
+                      "description",
+                      "content"
+                  ],
                   "debugobshistory.marker_date": [
                       *, (glob)
                       0 (glob)
@@ -787,6 +813,11 @@
       {
           "debugobshistory.markers": [
               {
+                  "debugobshistory.effect": [
+                      "description",
+                      "parent",
+                      "content"
+                  ],
                   "debugobshistory.marker_date": [
                       *, (glob)
                       0 (glob)
@@ -887,8 +918,8 @@
 Check that debugobshistory on the divergent revision show both destinations
   $ hg obslog --hidden 471f378eab4c
   x  471f378eab4c (1) A0
-       rewritten by test (*) as 65b757b745b9 (glob)
-       rewritten by test (*) as fdf9bde5129a (glob)
+       rewritten(description) by test (*) as 65b757b745b9 (glob)
+       rewritten(description) by test (*) as fdf9bde5129a (glob)
   
 
 Check that with all option, every changeset is shown
@@ -898,14 +929,17 @@
   | o  fdf9bde5129a (2) A1
   |/
   x  471f378eab4c (1) A0
-       rewritten by test (*) as 65b757b745b9 (glob)
-       rewritten by test (*) as fdf9bde5129a (glob)
+       rewritten(description) by test (*) as 65b757b745b9 (glob)
+       rewritten(description) by test (*) as fdf9bde5129a (glob)
   
   $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | python -m json.tool
   [
       {
           "debugobshistory.markers": [
               {
+                  "debugobshistory.effect": [
+                      "description"
+                  ],
                   "debugobshistory.marker_date": [
                       *, (glob)
                       0 (glob)
@@ -917,6 +951,9 @@
                   "debugobshistory.verb": "rewritten"
               },
               {
+                  "debugobshistory.effect": [
+                      "description"
+                  ],
                   "debugobshistory.marker_date": [
                       *, (glob)
                       0 (glob)
@@ -939,8 +976,8 @@
   o  fdf9bde5129a (2) A1
   |
   x  471f378eab4c (1) A0
-       rewritten by test (*) as 65b757b745b9 (glob)
-       rewritten by test (*) as fdf9bde5129a (glob)
+       rewritten(description) by test (*) as 65b757b745b9 (glob)
+       rewritten(description) by test (*) as fdf9bde5129a (glob)
   
 
 Check that all option show all of them
@@ -950,8 +987,8 @@
   | o  fdf9bde5129a (2) A1
   |/
   x  471f378eab4c (1) A0
-       rewritten by test (*) as 65b757b745b9 (glob)
-       rewritten by test (*) as fdf9bde5129a (glob)
+       rewritten(description) by test (*) as 65b757b745b9 (glob)
+       rewritten(description) by test (*) as fdf9bde5129a (glob)
   
 Check that debugobshistory on the second diverged revision show the revision
 and the diverent one
@@ -959,8 +996,8 @@
   @  65b757b745b9 (3) A2
   |
   x  471f378eab4c (1) A0
-       rewritten by test (*) as 65b757b745b9 (glob)
-       rewritten by test (*) as fdf9bde5129a (glob)
+       rewritten(description) by test (*) as 65b757b745b9 (glob)
+       rewritten(description) by test (*) as fdf9bde5129a (glob)
   
 Check that all option show all of them
   $ hg obslog 65b757b745b9 -a
@@ -969,8 +1006,8 @@
   | o  fdf9bde5129a (2) A1
   |/
   x  471f378eab4c (1) A0
-       rewritten by test (*) as 65b757b745b9 (glob)
-       rewritten by test (*) as fdf9bde5129a (glob)
+       rewritten(description) by test (*) as 65b757b745b9 (glob)
+       rewritten(description) by test (*) as fdf9bde5129a (glob)
   
 Check that debugobshistory on the both diverged revision show a coherent
 graph
@@ -980,8 +1017,8 @@
   | o  fdf9bde5129a (2) A1
   |/
   x  471f378eab4c (1) A0
-       rewritten by test (*) as 65b757b745b9 (glob)
-       rewritten by test (*) as fdf9bde5129a (glob)
+       rewritten(description) by test (*) as 65b757b745b9 (glob)
+       rewritten(description) by test (*) as fdf9bde5129a (glob)
   
   $ hg obslog '65b757b745b9+fdf9bde5129a' --no-graph -Tjson | python -m json.tool
   [
@@ -994,6 +1031,9 @@
       {
           "debugobshistory.markers": [
               {
+                  "debugobshistory.effect": [
+                      "description"
+                  ],
                   "debugobshistory.marker_date": [
                       *, (glob)
                       0 (glob)
@@ -1005,6 +1045,9 @@
                   "debugobshistory.verb": "rewritten"
               },
               {
+                  "debugobshistory.effect": [
+                      "description"
+                  ],
                   "debugobshistory.marker_date": [
                       *, (glob)
                       0 (glob)
@@ -1034,7 +1077,7 @@
   $ hg update --hidden 'desc(A0)'
   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   working directory parent is obsolete! (471f378eab4c)
-  (471f378eab4c has diverged, use 'hg evolve -list --divergent' to resolve the issue)
+  (471f378eab4c has diverged, use 'hg evolve --list --divergent' to resolve the issue)
 
 Test output with amended + folded commit
 ========================================
@@ -1111,26 +1154,26 @@
   @    eb5a0daa2192 (4) C0
   |\
   x |  471f378eab4c (1) A0
-   /     rewritten by test (*) as eb5a0daa2192 (glob)
+   /     rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
   |
   x  b7ea6d14e664 (3) B1
-  |    rewritten by test (*) as eb5a0daa2192 (glob)
+  |    rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
   |
   x  0dec01379d3b (2) B0
-       rewritten by test (*) as b7ea6d14e664 (glob)
+       rewritten(description) by test (*) as b7ea6d14e664 (glob)
   
 Check that obslog on ROOT with all option show everything
   $ hg obslog 1 --hidden --all
   @    eb5a0daa2192 (4) C0
   |\
   x |  471f378eab4c (1) A0
-   /     rewritten by test (*) as eb5a0daa2192 (glob)
+   /     rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
   |
   x  b7ea6d14e664 (3) B1
-  |    rewritten by test (*) as eb5a0daa2192 (glob)
+  |    rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
   |
   x  0dec01379d3b (2) B0
-       rewritten by test (*) as b7ea6d14e664 (glob)
+       rewritten(description) by test (*) as b7ea6d14e664 (glob)
   
   $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool
   [
@@ -1143,6 +1186,11 @@
       {
           "debugobshistory.markers": [
               {
+                  "debugobshistory.effect": [
+                      *, (glob)
+                      *, (glob)
+                      "content"
+                  ],
                   "debugobshistory.marker_date": [
                       *, (glob)
                       0 (glob)
@@ -1161,6 +1209,9 @@
       {
           "debugobshistory.markers": [
               {
+                  "debugobshistory.effect": [
+                      "description"
+                  ],
                   "debugobshistory.marker_date": [
                       *, (glob)
                       0 (glob)
@@ -1179,6 +1230,10 @@
       {
           "debugobshistory.markers": [
               {
+                  "debugobshistory.effect": [
+                      "description",
+                      "content"
+                  ],
                   "debugobshistory.marker_date": [
                       *, (glob)
                       0 (glob)
@@ -1288,10 +1343,10 @@
   @  7a230b46bf61 (3) A2
   |
   x  fdf9bde5129a (2) A1
-  |    rewritten by test (*) as 7a230b46bf61 (glob)
+  |    rewritten(description) by test (*) as 7a230b46bf61 (glob)
   |
   x  471f378eab4c (1) A0
-       rewritten by test (*) as fdf9bde5129a (glob)
+       rewritten(description) by test (*) as fdf9bde5129a (glob)
   
   $ cd $TESTTMP/local-remote-markers-2
   $ hg pull
@@ -1311,17 +1366,17 @@
   o  7a230b46bf61 (2) A2
   |
   x  fdf9bde5129a
-  |    rewritten by test (*) as 7a230b46bf61 (glob)
+  |    rewritten(description) by test (*) as 7a230b46bf61 (glob)
   |
   @  471f378eab4c (1) A0
-       rewritten by test (*) as fdf9bde5129a (glob)
+       rewritten(description) by test (*) as fdf9bde5129a (glob)
   
   $ hg obslog 7a230b46bf61 --color=debug
   o  [evolve.node|7a230b46bf61] [evolve.rev|(2)] [evolve.short_description|A2]
   |
   x  [evolve.node evolve.missing_change_ctx|fdf9bde5129a]
-  |    [evolve.verb|rewritten] by [evolve.user|test] [evolve.date|(*)] as [evolve.node|7a230b46bf61] (glob)
+  |    [evolve.verb|rewritten](description) by [evolve.user|test] [evolve.date|(*)] as [evolve.node|7a230b46bf61] (glob)
   |
   @  [evolve.node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0]
-       [evolve.verb|rewritten] by [evolve.user|test] [evolve.date|(*)] as [evolve.node|fdf9bde5129a] (glob)
+       [evolve.verb|rewritten](description) by [evolve.user|test] [evolve.date|(*)] as [evolve.node|fdf9bde5129a] (glob)