tests/test-evolve-obshistory.t
changeset 3559 d166b3dc5e8a
parent 3519 2823c82ad8a4
child 3564 589649021ea1
equal deleted inserted replaced
3558:cec6e21b3bcf 3559:d166b3dc5e8a
   154           "shortdescription": "A0"
   154           "shortdescription": "A0"
   155       }
   155       }
   156   ]
   156   ]
   157   $ hg obslog --hidden --patch 471f378eab4c
   157   $ hg obslog --hidden --patch 471f378eab4c
   158   x  471f378eab4c (1) A0
   158   x  471f378eab4c (1) A0
   159        rewritten(description, content) as 4ae3a4151de9 using amend by test (*) (glob)
   159        rewritten(description, content) as 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   160          diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description
   160          diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description
   161          --- a/changeset-description
   161          --- a/changeset-description
   162          +++ b/changeset-description
   162          +++ b/changeset-description
   163          @@ -1,1 +1,3 @@
   163          @@ -1,1 +1,3 @@
   164          -A0
   164          -A0
   265 Actual test
   265 Actual test
   266 -----------
   266 -----------
   267 
   267 
   268   $ hg obslog 'desc(B0)' --hidden --patch
   268   $ hg obslog 'desc(B0)' --hidden --patch
   269   x  0dec01379d3b (2) B0
   269   x  0dec01379d3b (2) B0
   270        pruned by test (*) (glob)
   270        pruned by test (Thu Jan 01 00:00:00 1970 +0000)
   271          (No patch available, no successors)
   271          (No patch available, no successors)
   272   
   272   
   273   $ hg obslog 'desc(B0)' --hidden --no-graph -Tjson | python -m json.tool
   273   $ hg obslog 'desc(B0)' --hidden --no-graph -Tjson | python -m json.tool
   274   [
   274   [
   275       {
   275       {
   402 -----------
   402 -----------
   403 
   403 
   404 Check that debugobshistory on splitted commit show both targets
   404 Check that debugobshistory on splitted commit show both targets
   405   $ hg obslog 471597cad322 --hidden --patch
   405   $ hg obslog 471597cad322 --hidden --patch
   406   x  471597cad322 (1) A0
   406   x  471597cad322 (1) A0
   407        rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (*) (glob)
   407        rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (Thu Jan 01 00:00:00 1970 +0000)
   408          note: testing split
   408          note: testing split
   409          (No patch available, too many successors (2))
   409          (No patch available, too many successors (2))
   410   
   410   
   411   $ hg obslog 471597cad322 --hidden --no-graph -Tjson | python -m json.tool
   411   $ hg obslog 471597cad322 --hidden --no-graph -Tjson | python -m json.tool
   412   [
   412   [
   439 the revision plus the splitted one
   439 the revision plus the splitted one
   440   $ hg obslog 337fec4d2edc --patch
   440   $ hg obslog 337fec4d2edc --patch
   441   o  337fec4d2edc (2) A0
   441   o  337fec4d2edc (2) A0
   442   |
   442   |
   443   x  471597cad322 (1) A0
   443   x  471597cad322 (1) A0
   444        rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (*) (glob)
   444        rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (Thu Jan 01 00:00:00 1970 +0000)
   445          note: testing split
   445          note: testing split
   446          (No patch available, too many successors (2))
   446          (No patch available, too many successors (2))
   447   
   447   
   448 With the all option, it should show the three changesets
   448 With the all option, it should show the three changesets
   449   $ hg obslog --all 337fec4d2edc --patch
   449   $ hg obslog --all 337fec4d2edc --patch
   450   o  337fec4d2edc (2) A0
   450   o  337fec4d2edc (2) A0
   451   |
   451   |
   452   | @  f257fde29c7a (3) A0
   452   | @  f257fde29c7a (3) A0
   453   |/
   453   |/
   454   x  471597cad322 (1) A0
   454   x  471597cad322 (1) A0
   455        rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (*) (glob)
   455        rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (Thu Jan 01 00:00:00 1970 +0000)
   456          note: testing split
   456          note: testing split
   457          (No patch available, too many successors (2))
   457          (No patch available, too many successors (2))
   458   
   458   
   459 Check that debugobshistory on the second successor after split show
   459 Check that debugobshistory on the second successor after split show
   460 the revision plus the splitted one
   460 the revision plus the splitted one
   461   $ hg obslog f257fde29c7a --patch
   461   $ hg obslog f257fde29c7a --patch
   462   @  f257fde29c7a (3) A0
   462   @  f257fde29c7a (3) A0
   463   |
   463   |
   464   x  471597cad322 (1) A0
   464   x  471597cad322 (1) A0
   465        rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (*) (glob)
   465        rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (Thu Jan 01 00:00:00 1970 +0000)
   466          note: testing split
   466          note: testing split
   467          (No patch available, too many successors (2))
   467          (No patch available, too many successors (2))
   468   
   468   
   469 With the all option, it should show the three changesets
   469 With the all option, it should show the three changesets
   470   $ hg obslog f257fde29c7a --all --patch
   470   $ hg obslog f257fde29c7a --all --patch
   471   o  337fec4d2edc (2) A0
   471   o  337fec4d2edc (2) A0
   472   |
   472   |
   473   | @  f257fde29c7a (3) A0
   473   | @  f257fde29c7a (3) A0
   474   |/
   474   |/
   475   x  471597cad322 (1) A0
   475   x  471597cad322 (1) A0
   476        rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (*) (glob)
   476        rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (Thu Jan 01 00:00:00 1970 +0000)
   477          note: testing split
   477          note: testing split
   478          (No patch available, too many successors (2))
   478          (No patch available, too many successors (2))
   479   
   479   
   480 Obslog with all option all should also works on the splitted commit
   480 Obslog with all option all should also works on the splitted commit
   481   $ hg obslog -a 471597cad322 --hidden --patch
   481   $ hg obslog -a 471597cad322 --hidden --patch
   482   o  337fec4d2edc (2) A0
   482   o  337fec4d2edc (2) A0
   483   |
   483   |
   484   | @  f257fde29c7a (3) A0
   484   | @  f257fde29c7a (3) A0
   485   |/
   485   |/
   486   x  471597cad322 (1) A0
   486   x  471597cad322 (1) A0
   487        rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (*) (glob)
   487        rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (Thu Jan 01 00:00:00 1970 +0000)
   488          note: testing split
   488          note: testing split
   489          (No patch available, too many successors (2))
   489          (No patch available, too many successors (2))
   490   
   490   
   491 Check that debugobshistory on both successors after split show
   491 Check that debugobshistory on both successors after split show
   492 a coherent graph
   492 a coherent graph
   494   o  337fec4d2edc (2) A0
   494   o  337fec4d2edc (2) A0
   495   |
   495   |
   496   | @  f257fde29c7a (3) A0
   496   | @  f257fde29c7a (3) A0
   497   |/
   497   |/
   498   x  471597cad322 (1) A0
   498   x  471597cad322 (1) A0
   499        rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (*) (glob)
   499        rewritten(parent, content) as 337fec4d2edc, f257fde29c7a by test (Thu Jan 01 00:00:00 1970 +0000)
   500          note: testing split
   500          note: testing split
   501          (No patch available, too many successors (2))
   501          (No patch available, too many successors (2))
   502   
   502   
   503   $ hg update 471597cad322
   503   $ hg update 471597cad322
   504   abort: hidden revision '471597cad322'!
   504   abort: hidden revision '471597cad322'!
   665 Actual test
   665 Actual test
   666 -----------
   666 -----------
   667 
   667 
   668   $ hg obslog de7290d8b885 --hidden --patch
   668   $ hg obslog de7290d8b885 --hidden --patch
   669   x  de7290d8b885 (1) A0
   669   x  de7290d8b885 (1) A0
   670        rewritten(parent, content) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a by test (*) (glob)
   670        rewritten(parent, content) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a by test (Thu Jan 01 00:00:00 1970 +0000)
   671          (No patch available, too many successors (4))
   671          (No patch available, too many successors (4))
   672   
   672   
   673   $ hg obslog de7290d8b885 --hidden --all --patch
   673   $ hg obslog de7290d8b885 --hidden --all --patch
   674   o  1ae8bc733a14 (4) A0
   674   o  1ae8bc733a14 (4) A0
   675   |
   675   |
   678   | @  c7f044602e9b (5) A0
   678   | @  c7f044602e9b (5) A0
   679   |/
   679   |/
   680   | o  f257fde29c7a (3) A0
   680   | o  f257fde29c7a (3) A0
   681   |/
   681   |/
   682   x  de7290d8b885 (1) A0
   682   x  de7290d8b885 (1) A0
   683        rewritten(parent, content) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a by test (*) (glob)
   683        rewritten(parent, content) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a by test (Thu Jan 01 00:00:00 1970 +0000)
   684          (No patch available, too many successors (4))
   684          (No patch available, too many successors (4))
   685   
   685   
   686   $ hg obslog de7290d8b885 --hidden --no-graph -Tjson | python -m json.tool
   686   $ hg obslog de7290d8b885 --hidden --no-graph -Tjson | python -m json.tool
   687   [
   687   [
   688       {
   688       {
   713   ]
   713   ]
   714   $ hg obslog c7f044602e9b --patch
   714   $ hg obslog c7f044602e9b --patch
   715   @  c7f044602e9b (5) A0
   715   @  c7f044602e9b (5) A0
   716   |
   716   |
   717   x  de7290d8b885 (1) A0
   717   x  de7290d8b885 (1) A0
   718        rewritten(parent, content) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a by test (*) (glob)
   718        rewritten(parent, content) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a by test (Thu Jan 01 00:00:00 1970 +0000)
   719          (No patch available, too many successors (4))
   719          (No patch available, too many successors (4))
   720   
   720   
   721   $ hg obslog c7f044602e9b --no-graph -Tjson | python -m json.tool
   721   $ hg obslog c7f044602e9b --no-graph -Tjson | python -m json.tool
   722   [
   722   [
   723       {
   723       {
   761   | @  c7f044602e9b (5) A0
   761   | @  c7f044602e9b (5) A0
   762   |/
   762   |/
   763   | o  f257fde29c7a (3) A0
   763   | o  f257fde29c7a (3) A0
   764   |/
   764   |/
   765   x  de7290d8b885 (1) A0
   765   x  de7290d8b885 (1) A0
   766        rewritten(parent, content) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a by test (*) (glob)
   766        rewritten(parent, content) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a by test (Thu Jan 01 00:00:00 1970 +0000)
   767          (No patch available, too many successors (4))
   767          (No patch available, too many successors (4))
   768   
   768   
   769   $ hg obslog 5 --all --patch
   769   $ hg obslog 5 --all --patch
   770   o  1ae8bc733a14 (4) A0
   770   o  1ae8bc733a14 (4) A0
   771   |
   771   |
   774   | @  c7f044602e9b (5) A0
   774   | @  c7f044602e9b (5) A0
   775   |/
   775   |/
   776   | o  f257fde29c7a (3) A0
   776   | o  f257fde29c7a (3) A0
   777   |/
   777   |/
   778   x  de7290d8b885 (1) A0
   778   x  de7290d8b885 (1) A0
   779        rewritten(parent, content) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a by test (*) (glob)
   779        rewritten(parent, content) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a by test (Thu Jan 01 00:00:00 1970 +0000)
   780          (No patch available, too many successors (4))
   780          (No patch available, too many successors (4))
   781   
   781   
   782   $ hg update de7290d8b885
   782   $ hg update de7290d8b885
   783   abort: hidden revision 'de7290d8b885'!
   783   abort: hidden revision 'de7290d8b885'!
   784   (use --hidden to access hidden revisions; successors: 337fec4d2edc, f257fde29c7a and 2 more)
   784   (use --hidden to access hidden revisions; successors: 337fec4d2edc, f257fde29c7a and 2 more)
   851 
   851 
   852 Check that debugobshistory on the first folded revision show only
   852 Check that debugobshistory on the first folded revision show only
   853 the revision with the target
   853 the revision with the target
   854   $ hg obslog --hidden 471f378eab4c --patch
   854   $ hg obslog --hidden 471f378eab4c --patch
   855   x  471f378eab4c (1) A0
   855   x  471f378eab4c (1) A0
   856        rewritten(description, content) as eb5a0daa2192 by test (*) (glob)
   856        rewritten(description, content) as eb5a0daa2192 by test (Thu Jan 01 00:00:00 1970 +0000)
   857          diff -r 471f378eab4c -r eb5a0daa2192 changeset-description
   857          diff -r 471f378eab4c -r eb5a0daa2192 changeset-description
   858          --- a/changeset-description
   858          --- a/changeset-description
   859          +++ b/changeset-description
   859          +++ b/changeset-description
   860          @@ -1,1 +1,1 @@
   860          @@ -1,1 +1,1 @@
   861          -A0
   861          -A0
   871 Check that with all option, all changesets are shown
   871 Check that with all option, all changesets are shown
   872   $ hg obslog --hidden --all 471f378eab4c --patch
   872   $ hg obslog --hidden --all 471f378eab4c --patch
   873   @    eb5a0daa2192 (3) C0
   873   @    eb5a0daa2192 (3) C0
   874   |\
   874   |\
   875   x |  0dec01379d3b (2) B0
   875   x |  0dec01379d3b (2) B0
   876    /     rewritten(description, parent, content) as eb5a0daa2192 by test (*) (glob)
   876    /     rewritten(description, parent, content) as eb5a0daa2192 by test (Thu Jan 01 00:00:00 1970 +0000)
   877   |        (No patch available, changesets rebased)
   877   |        (No patch available, changesets rebased)
   878   |
   878   |
   879   x  471f378eab4c (1) A0
   879   x  471f378eab4c (1) A0
   880        rewritten(description, content) as eb5a0daa2192 by test (*) (glob)
   880        rewritten(description, content) as eb5a0daa2192 by test (Thu Jan 01 00:00:00 1970 +0000)
   881          diff -r 471f378eab4c -r eb5a0daa2192 changeset-description
   881          diff -r 471f378eab4c -r eb5a0daa2192 changeset-description
   882          --- a/changeset-description
   882          --- a/changeset-description
   883          +++ b/changeset-description
   883          +++ b/changeset-description
   884          @@ -1,1 +1,1 @@
   884          @@ -1,1 +1,1 @@
   885          -A0
   885          -A0
   894   
   894   
   895 Check that debugobshistory on the second folded revision show only
   895 Check that debugobshistory on the second folded revision show only
   896 the revision with the target
   896 the revision with the target
   897   $ hg obslog --hidden 0dec01379d3b --patch
   897   $ hg obslog --hidden 0dec01379d3b --patch
   898   x  0dec01379d3b (2) B0
   898   x  0dec01379d3b (2) B0
   899        rewritten(description, parent, content) as eb5a0daa2192 by test (*) (glob)
   899        rewritten(description, parent, content) as eb5a0daa2192 by test (Thu Jan 01 00:00:00 1970 +0000)
   900          (No patch available, changesets rebased)
   900          (No patch available, changesets rebased)
   901   
   901   
   902 Check that with all option, all changesets are shown
   902 Check that with all option, all changesets are shown
   903   $ hg obslog --hidden --all 0dec01379d3b --patch
   903   $ hg obslog --hidden --all 0dec01379d3b --patch
   904   @    eb5a0daa2192 (3) C0
   904   @    eb5a0daa2192 (3) C0
   905   |\
   905   |\
   906   x |  0dec01379d3b (2) B0
   906   x |  0dec01379d3b (2) B0
   907    /     rewritten(description, parent, content) as eb5a0daa2192 by test (*) (glob)
   907    /     rewritten(description, parent, content) as eb5a0daa2192 by test (Thu Jan 01 00:00:00 1970 +0000)
   908   |        (No patch available, changesets rebased)
   908   |        (No patch available, changesets rebased)
   909   |
   909   |
   910   x  471f378eab4c (1) A0
   910   x  471f378eab4c (1) A0
   911        rewritten(description, content) as eb5a0daa2192 by test (*) (glob)
   911        rewritten(description, content) as eb5a0daa2192 by test (Thu Jan 01 00:00:00 1970 +0000)
   912          diff -r 471f378eab4c -r eb5a0daa2192 changeset-description
   912          diff -r 471f378eab4c -r eb5a0daa2192 changeset-description
   913          --- a/changeset-description
   913          --- a/changeset-description
   914          +++ b/changeset-description
   914          +++ b/changeset-description
   915          @@ -1,1 +1,1 @@
   915          @@ -1,1 +1,1 @@
   916          -A0
   916          -A0
   927 graph
   927 graph
   928   $ hg obslog eb5a0daa2192 --patch
   928   $ hg obslog eb5a0daa2192 --patch
   929   @    eb5a0daa2192 (3) C0
   929   @    eb5a0daa2192 (3) C0
   930   |\
   930   |\
   931   x |  0dec01379d3b (2) B0
   931   x |  0dec01379d3b (2) B0
   932    /     rewritten(description, parent, content) as eb5a0daa2192 by test (*) (glob)
   932    /     rewritten(description, parent, content) as eb5a0daa2192 by test (Thu Jan 01 00:00:00 1970 +0000)
   933   |        (No patch available, changesets rebased)
   933   |        (No patch available, changesets rebased)
   934   |
   934   |
   935   x  471f378eab4c (1) A0
   935   x  471f378eab4c (1) A0
   936        rewritten(description, content) as eb5a0daa2192 by test (*) (glob)
   936        rewritten(description, content) as eb5a0daa2192 by test (Thu Jan 01 00:00:00 1970 +0000)
   937          diff -r 471f378eab4c -r eb5a0daa2192 changeset-description
   937          diff -r 471f378eab4c -r eb5a0daa2192 changeset-description
   938          --- a/changeset-description
   938          --- a/changeset-description
   939          +++ b/changeset-description
   939          +++ b/changeset-description
   940          @@ -1,1 +1,1 @@
   940          @@ -1,1 +1,1 @@
   941          -A0
   941          -A0
  1093 -----------
  1093 -----------
  1094 
  1094 
  1095 Check that debugobshistory on the divergent revision show both destinations
  1095 Check that debugobshistory on the divergent revision show both destinations
  1096   $ hg obslog --hidden 471f378eab4c --patch
  1096   $ hg obslog --hidden 471f378eab4c --patch
  1097   x  471f378eab4c (1) A0
  1097   x  471f378eab4c (1) A0
  1098        rewritten(description) as 65b757b745b9 using amend by test (*) (glob)
  1098        rewritten(description) as 65b757b745b9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1099          diff -r 471f378eab4c -r 65b757b745b9 changeset-description
  1099          diff -r 471f378eab4c -r 65b757b745b9 changeset-description
  1100          --- a/changeset-description
  1100          --- a/changeset-description
  1101          +++ b/changeset-description
  1101          +++ b/changeset-description
  1102          @@ -1,1 +1,1 @@
  1102          @@ -1,1 +1,1 @@
  1103          -A0
  1103          -A0
  1104          +A2
  1104          +A2
  1105   
  1105   
  1106        rewritten(description) as fdf9bde5129a using amend by test (*) (glob)
  1106        rewritten(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1107          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
  1107          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
  1108          --- a/changeset-description
  1108          --- a/changeset-description
  1109          +++ b/changeset-description
  1109          +++ b/changeset-description
  1110          @@ -1,1 +1,1 @@
  1110          @@ -1,1 +1,1 @@
  1111          -A0
  1111          -A0
  1118   @  65b757b745b9 (3) A2
  1118   @  65b757b745b9 (3) A2
  1119   |
  1119   |
  1120   | *  fdf9bde5129a (2) A1
  1120   | *  fdf9bde5129a (2) A1
  1121   |/
  1121   |/
  1122   x  471f378eab4c (1) A0
  1122   x  471f378eab4c (1) A0
  1123        rewritten(description) as 65b757b745b9 using amend by test (*) (glob)
  1123        rewritten(description) as 65b757b745b9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1124          diff -r 471f378eab4c -r 65b757b745b9 changeset-description
  1124          diff -r 471f378eab4c -r 65b757b745b9 changeset-description
  1125          --- a/changeset-description
  1125          --- a/changeset-description
  1126          +++ b/changeset-description
  1126          +++ b/changeset-description
  1127          @@ -1,1 +1,1 @@
  1127          @@ -1,1 +1,1 @@
  1128          -A0
  1128          -A0
  1129          +A2
  1129          +A2
  1130   
  1130   
  1131        rewritten(description) as fdf9bde5129a using amend by test (*) (glob)
  1131        rewritten(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1132          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
  1132          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
  1133          --- a/changeset-description
  1133          --- a/changeset-description
  1134          +++ b/changeset-description
  1134          +++ b/changeset-description
  1135          @@ -1,1 +1,1 @@
  1135          @@ -1,1 +1,1 @@
  1136          -A0
  1136          -A0
  1181 and the diverent one
  1181 and the diverent one
  1182   $ hg obslog fdf9bde5129a --patch
  1182   $ hg obslog fdf9bde5129a --patch
  1183   *  fdf9bde5129a (2) A1
  1183   *  fdf9bde5129a (2) A1
  1184   |
  1184   |
  1185   x  471f378eab4c (1) A0
  1185   x  471f378eab4c (1) A0
  1186        rewritten(description) as 65b757b745b9 using amend by test (*) (glob)
  1186        rewritten(description) as 65b757b745b9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1187          diff -r 471f378eab4c -r 65b757b745b9 changeset-description
  1187          diff -r 471f378eab4c -r 65b757b745b9 changeset-description
  1188          --- a/changeset-description
  1188          --- a/changeset-description
  1189          +++ b/changeset-description
  1189          +++ b/changeset-description
  1190          @@ -1,1 +1,1 @@
  1190          @@ -1,1 +1,1 @@
  1191          -A0
  1191          -A0
  1192          +A2
  1192          +A2
  1193   
  1193   
  1194        rewritten(description) as fdf9bde5129a using amend by test (*) (glob)
  1194        rewritten(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1195          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
  1195          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
  1196          --- a/changeset-description
  1196          --- a/changeset-description
  1197          +++ b/changeset-description
  1197          +++ b/changeset-description
  1198          @@ -1,1 +1,1 @@
  1198          @@ -1,1 +1,1 @@
  1199          -A0
  1199          -A0
  1206   @  65b757b745b9 (3) A2
  1206   @  65b757b745b9 (3) A2
  1207   |
  1207   |
  1208   | *  fdf9bde5129a (2) A1
  1208   | *  fdf9bde5129a (2) A1
  1209   |/
  1209   |/
  1210   x  471f378eab4c (1) A0
  1210   x  471f378eab4c (1) A0
  1211        rewritten(description) as 65b757b745b9 using amend by test (*) (glob)
  1211        rewritten(description) as 65b757b745b9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1212          diff -r 471f378eab4c -r 65b757b745b9 changeset-description
  1212          diff -r 471f378eab4c -r 65b757b745b9 changeset-description
  1213          --- a/changeset-description
  1213          --- a/changeset-description
  1214          +++ b/changeset-description
  1214          +++ b/changeset-description
  1215          @@ -1,1 +1,1 @@
  1215          @@ -1,1 +1,1 @@
  1216          -A0
  1216          -A0
  1217          +A2
  1217          +A2
  1218   
  1218   
  1219        rewritten(description) as fdf9bde5129a using amend by test (*) (glob)
  1219        rewritten(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1220          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
  1220          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
  1221          --- a/changeset-description
  1221          --- a/changeset-description
  1222          +++ b/changeset-description
  1222          +++ b/changeset-description
  1223          @@ -1,1 +1,1 @@
  1223          @@ -1,1 +1,1 @@
  1224          -A0
  1224          -A0
  1229 and the diverent one
  1229 and the diverent one
  1230   $ hg obslog 65b757b745b9 --patch
  1230   $ hg obslog 65b757b745b9 --patch
  1231   @  65b757b745b9 (3) A2
  1231   @  65b757b745b9 (3) A2
  1232   |
  1232   |
  1233   x  471f378eab4c (1) A0
  1233   x  471f378eab4c (1) A0
  1234        rewritten(description) as 65b757b745b9 using amend by test (*) (glob)
  1234        rewritten(description) as 65b757b745b9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1235          diff -r 471f378eab4c -r 65b757b745b9 changeset-description
  1235          diff -r 471f378eab4c -r 65b757b745b9 changeset-description
  1236          --- a/changeset-description
  1236          --- a/changeset-description
  1237          +++ b/changeset-description
  1237          +++ b/changeset-description
  1238          @@ -1,1 +1,1 @@
  1238          @@ -1,1 +1,1 @@
  1239          -A0
  1239          -A0
  1240          +A2
  1240          +A2
  1241   
  1241   
  1242        rewritten(description) as fdf9bde5129a using amend by test (*) (glob)
  1242        rewritten(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1243          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
  1243          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
  1244          --- a/changeset-description
  1244          --- a/changeset-description
  1245          +++ b/changeset-description
  1245          +++ b/changeset-description
  1246          @@ -1,1 +1,1 @@
  1246          @@ -1,1 +1,1 @@
  1247          -A0
  1247          -A0
  1253   @  65b757b745b9 (3) A2
  1253   @  65b757b745b9 (3) A2
  1254   |
  1254   |
  1255   | *  fdf9bde5129a (2) A1
  1255   | *  fdf9bde5129a (2) A1
  1256   |/
  1256   |/
  1257   x  471f378eab4c (1) A0
  1257   x  471f378eab4c (1) A0
  1258        rewritten(description) as 65b757b745b9 using amend by test (*) (glob)
  1258        rewritten(description) as 65b757b745b9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1259          diff -r 471f378eab4c -r 65b757b745b9 changeset-description
  1259          diff -r 471f378eab4c -r 65b757b745b9 changeset-description
  1260          --- a/changeset-description
  1260          --- a/changeset-description
  1261          +++ b/changeset-description
  1261          +++ b/changeset-description
  1262          @@ -1,1 +1,1 @@
  1262          @@ -1,1 +1,1 @@
  1263          -A0
  1263          -A0
  1264          +A2
  1264          +A2
  1265   
  1265   
  1266        rewritten(description) as fdf9bde5129a using amend by test (*) (glob)
  1266        rewritten(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1267          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
  1267          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
  1268          --- a/changeset-description
  1268          --- a/changeset-description
  1269          +++ b/changeset-description
  1269          +++ b/changeset-description
  1270          @@ -1,1 +1,1 @@
  1270          @@ -1,1 +1,1 @@
  1271          -A0
  1271          -A0
  1278   @  65b757b745b9 (3) A2
  1278   @  65b757b745b9 (3) A2
  1279   |
  1279   |
  1280   | *  fdf9bde5129a (2) A1
  1280   | *  fdf9bde5129a (2) A1
  1281   |/
  1281   |/
  1282   x  471f378eab4c (1) A0
  1282   x  471f378eab4c (1) A0
  1283        rewritten(description) as 65b757b745b9 using amend by test (*) (glob)
  1283        rewritten(description) as 65b757b745b9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1284          diff -r 471f378eab4c -r 65b757b745b9 changeset-description
  1284          diff -r 471f378eab4c -r 65b757b745b9 changeset-description
  1285          --- a/changeset-description
  1285          --- a/changeset-description
  1286          +++ b/changeset-description
  1286          +++ b/changeset-description
  1287          @@ -1,1 +1,1 @@
  1287          @@ -1,1 +1,1 @@
  1288          -A0
  1288          -A0
  1289          +A2
  1289          +A2
  1290   
  1290   
  1291        rewritten(description) as fdf9bde5129a using amend by test (*) (glob)
  1291        rewritten(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1292          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
  1292          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
  1293          --- a/changeset-description
  1293          --- a/changeset-description
  1294          +++ b/changeset-description
  1294          +++ b/changeset-description
  1295          @@ -1,1 +1,1 @@
  1295          @@ -1,1 +1,1 @@
  1296          -A0
  1296          -A0
  1437 Check that debugobshistory on head show a coherent graph
  1437 Check that debugobshistory on head show a coherent graph
  1438   $ hg obslog eb5a0daa2192 --patch
  1438   $ hg obslog eb5a0daa2192 --patch
  1439   @    eb5a0daa2192 (4) C0
  1439   @    eb5a0daa2192 (4) C0
  1440   |\
  1440   |\
  1441   x |  471f378eab4c (1) A0
  1441   x |  471f378eab4c (1) A0
  1442    /     rewritten(description, content) as eb5a0daa2192 by test (*) (glob)
  1442    /     rewritten(description, content) as eb5a0daa2192 by test (Thu Jan 01 00:00:00 1970 +0000)
  1443   |        diff -r 471f378eab4c -r eb5a0daa2192 changeset-description
  1443   |        diff -r 471f378eab4c -r eb5a0daa2192 changeset-description
  1444   |        --- a/changeset-description
  1444   |        --- a/changeset-description
  1445   |        +++ b/changeset-description
  1445   |        +++ b/changeset-description
  1446   |        @@ -1,1 +1,1 @@
  1446   |        @@ -1,1 +1,1 @@
  1447   |        -A0
  1447   |        -A0
  1453   |        @@ -0,0 +1,1 @@
  1453   |        @@ -0,0 +1,1 @@
  1454   |        +B0
  1454   |        +B0
  1455   |
  1455   |
  1456   |
  1456   |
  1457   x  b7ea6d14e664 (3) B1
  1457   x  b7ea6d14e664 (3) B1
  1458   |    rewritten(description, parent, content) as eb5a0daa2192 by test (*) (glob)
  1458   |    rewritten(description, parent, content) as eb5a0daa2192 by test (Thu Jan 01 00:00:00 1970 +0000)
  1459   |      (No patch available, changesets rebased)
  1459   |      (No patch available, changesets rebased)
  1460   |
  1460   |
  1461   x  0dec01379d3b (2) B0
  1461   x  0dec01379d3b (2) B0
  1462        rewritten(description) as b7ea6d14e664 using amend by test (*) (glob)
  1462        rewritten(description) as b7ea6d14e664 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1463          diff -r 0dec01379d3b -r b7ea6d14e664 changeset-description
  1463          diff -r 0dec01379d3b -r b7ea6d14e664 changeset-description
  1464          --- a/changeset-description
  1464          --- a/changeset-description
  1465          +++ b/changeset-description
  1465          +++ b/changeset-description
  1466          @@ -1,1 +1,1 @@
  1466          @@ -1,1 +1,1 @@
  1467          -B0
  1467          -B0
  1471 Check that obslog on ROOT with all option show everything
  1471 Check that obslog on ROOT with all option show everything
  1472   $ hg obslog 1 --hidden --all --patch
  1472   $ hg obslog 1 --hidden --all --patch
  1473   @    eb5a0daa2192 (4) C0
  1473   @    eb5a0daa2192 (4) C0
  1474   |\
  1474   |\
  1475   x |  471f378eab4c (1) A0
  1475   x |  471f378eab4c (1) A0
  1476    /     rewritten(description, content) as eb5a0daa2192 by test (*) (glob)
  1476    /     rewritten(description, content) as eb5a0daa2192 by test (Thu Jan 01 00:00:00 1970 +0000)
  1477   |        diff -r 471f378eab4c -r eb5a0daa2192 changeset-description
  1477   |        diff -r 471f378eab4c -r eb5a0daa2192 changeset-description
  1478   |        --- a/changeset-description
  1478   |        --- a/changeset-description
  1479   |        +++ b/changeset-description
  1479   |        +++ b/changeset-description
  1480   |        @@ -1,1 +1,1 @@
  1480   |        @@ -1,1 +1,1 @@
  1481   |        -A0
  1481   |        -A0
  1487   |        @@ -0,0 +1,1 @@
  1487   |        @@ -0,0 +1,1 @@
  1488   |        +B0
  1488   |        +B0
  1489   |
  1489   |
  1490   |
  1490   |
  1491   x  b7ea6d14e664 (3) B1
  1491   x  b7ea6d14e664 (3) B1
  1492   |    rewritten(description, parent, content) as eb5a0daa2192 by test (*) (glob)
  1492   |    rewritten(description, parent, content) as eb5a0daa2192 by test (Thu Jan 01 00:00:00 1970 +0000)
  1493   |      (No patch available, changesets rebased)
  1493   |      (No patch available, changesets rebased)
  1494   |
  1494   |
  1495   x  0dec01379d3b (2) B0
  1495   x  0dec01379d3b (2) B0
  1496        rewritten(description) as b7ea6d14e664 using amend by test (*) (glob)
  1496        rewritten(description) as b7ea6d14e664 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1497          diff -r 0dec01379d3b -r b7ea6d14e664 changeset-description
  1497          diff -r 0dec01379d3b -r b7ea6d14e664 changeset-description
  1498          --- a/changeset-description
  1498          --- a/changeset-description
  1499          +++ b/changeset-description
  1499          +++ b/changeset-description
  1500          @@ -1,1 +1,1 @@
  1500          @@ -1,1 +1,1 @@
  1501          -B0
  1501          -B0
  1671 
  1671 
  1672   $ hg obslog 7a230b46bf61 --patch
  1672   $ hg obslog 7a230b46bf61 --patch
  1673   @  7a230b46bf61 (3) A2
  1673   @  7a230b46bf61 (3) A2
  1674   |
  1674   |
  1675   x  fdf9bde5129a (2) A1
  1675   x  fdf9bde5129a (2) A1
  1676   |    rewritten(description) as 7a230b46bf61 using amend by test (*) (glob)
  1676   |    rewritten(description) as 7a230b46bf61 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1677   |      diff -r fdf9bde5129a -r 7a230b46bf61 changeset-description
  1677   |      diff -r fdf9bde5129a -r 7a230b46bf61 changeset-description
  1678   |      --- a/changeset-description
  1678   |      --- a/changeset-description
  1679   |      +++ b/changeset-description
  1679   |      +++ b/changeset-description
  1680   |      @@ -1,1 +1,1 @@
  1680   |      @@ -1,1 +1,1 @@
  1681   |      -A1
  1681   |      -A1
  1682   |      +A2
  1682   |      +A2
  1683   |
  1683   |
  1684   |
  1684   |
  1685   x  471f378eab4c (1) A0
  1685   x  471f378eab4c (1) A0
  1686        rewritten(description) as fdf9bde5129a using amend by test (*) (glob)
  1686        rewritten(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1687          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
  1687          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
  1688          --- a/changeset-description
  1688          --- a/changeset-description
  1689          +++ b/changeset-description
  1689          +++ b/changeset-description
  1690          @@ -1,1 +1,1 @@
  1690          @@ -1,1 +1,1 @@
  1691          -A0
  1691          -A0
  1710 changectx
  1710 changectx
  1711   $ hg obslog 7a230b46bf61 --patch
  1711   $ hg obslog 7a230b46bf61 --patch
  1712   o  7a230b46bf61 (2) A2
  1712   o  7a230b46bf61 (2) A2
  1713   |
  1713   |
  1714   x  fdf9bde5129a
  1714   x  fdf9bde5129a
  1715   |    rewritten(description) as 7a230b46bf61 using amend by test (*) (glob)
  1715   |    rewritten(description) as 7a230b46bf61 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1716   |      (No patch available, context is not local)
  1716   |      (No patch available, context is not local)
  1717   |
  1717   |
  1718   @  471f378eab4c (1) A0
  1718   @  471f378eab4c (1) A0
  1719        rewritten(description) as fdf9bde5129a using amend by test (*) (glob)
  1719        rewritten(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
  1720          (No patch available, successor is unknown locally)
  1720          (No patch available, successor is unknown locally)
  1721   
  1721   
  1722   $ hg obslog 7a230b46bf61 --color=debug --patch
  1722   $ hg obslog 7a230b46bf61 --color=debug --patch
  1723   o  [evolve.node|7a230b46bf61] [evolve.rev|(2)] [evolve.short_description|A2]
  1723   o  [evolve.node|7a230b46bf61] [evolve.rev|(2)] [evolve.short_description|A2]
  1724   |
  1724   |
  1725   x  [evolve.node evolve.missing_change_ctx|fdf9bde5129a]
  1725   x  [evolve.node evolve.missing_change_ctx|fdf9bde5129a]
  1726   |    [evolve.verb|rewritten](description) as [evolve.node|7a230b46bf61] using [evolve.operation|amend] by [evolve.user|test] [evolve.date|(*)] (glob)
  1726   |    [evolve.verb|rewritten](description) as [evolve.node|7a230b46bf61] using [evolve.operation|amend] by [evolve.user|test] [evolve.date|(Thu Jan 01 00:00:00 1970 +0000)]
  1727   |      (No patch available, context is not local)
  1727   |      (No patch available, context is not local)
  1728   |
  1728   |
  1729   @  [evolve.node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0]
  1729   @  [evolve.node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0]
  1730        [evolve.verb|rewritten](description) as [evolve.node|fdf9bde5129a] using [evolve.operation|amend] by [evolve.user|test] [evolve.date|(*)] (glob)
  1730        [evolve.verb|rewritten](description) as [evolve.node|fdf9bde5129a] using [evolve.operation|amend] by [evolve.user|test] [evolve.date|(Thu Jan 01 00:00:00 1970 +0000)]
  1731          (No patch available, successor is unknown locally)
  1731          (No patch available, successor is unknown locally)
  1732   
  1732