tests/test-evolve-obshistory.t
changeset 2637 49f2741c4dd7
parent 2585 b5e3fe610beb
child 2639 a5d8062f55ba
equal deleted inserted replaced
2636:a788967aa800 2637:49f2741c4dd7
    53      date:        Thu Jan 01 00:00:00 1970 +0000
    53      date:        Thu Jan 01 00:00:00 1970 +0000
    54      summary:     ROOT
    54      summary:     ROOT
    55   
    55   
    56 Actual test
    56 Actual test
    57 -----------
    57 -----------
    58   $ hg obslog 4ae3a4151de9
    58   $ hg obslog --patch 4ae3a4151de9
    59   @  4ae3a4151de9 (3) A1
    59   @  4ae3a4151de9 (3) A1
    60   |
    60   |
    61   x  471f378eab4c (1) A0
    61   x  471f378eab4c (1) A0
    62        rewritten(description, content) by test (*) as 4ae3a4151de9 (glob)
    62        rewritten(description, content) by test (Thu Jan 01 00:00:00 1970 +0000) as 4ae3a4151de9
       
    63          diff -r 471f378eab4c -r 4ae3a4151de9 A0
       
    64          --- a/A0	Thu Jan 01 00:00:00 1970 +0000
       
    65          +++ b/A0	Thu Jan 01 00:00:00 1970 +0000
       
    66          @@ -1,1 +1,2 @@
       
    67           A0
       
    68          +42
       
    69   
    63   
    70   
    64   $ hg obslog 4ae3a4151de9 --no-graph -Tjson | python -m json.tool
    71   $ hg obslog 4ae3a4151de9 --no-graph -Tjson | python -m json.tool
    65   [
    72   [
    66       {
    73       {
    67           "debugobshistory.markers": [],
    74           "debugobshistory.markers": [],
    90           "debugobshistory.node": "471f378eab4c",
    97           "debugobshistory.node": "471f378eab4c",
    91           "debugobshistory.rev": 1,
    98           "debugobshistory.rev": 1,
    92           "debugobshistory.shortdescription": "A0"
    99           "debugobshistory.shortdescription": "A0"
    93       }
   100       }
    94   ]
   101   ]
    95   $ hg obslog --hidden 471f378eab4c
   102   $ hg obslog --hidden --patch 471f378eab4c
    96   x  471f378eab4c (1) A0
   103   x  471f378eab4c (1) A0
    97        rewritten(description, content) by test (*) as 4ae3a4151de9 (glob)
   104        rewritten(description, content) by test (*) as 4ae3a4151de9 (glob)
       
   105          diff -r 471f378eab4c -r 4ae3a4151de9 A0
       
   106          --- a/A0	Thu Jan 01 00:00:00 1970 +0000
       
   107          +++ b/A0	Thu Jan 01 00:00:00 1970 +0000
       
   108          @@ -1,1 +1,2 @@
       
   109           A0
       
   110          +42
       
   111   
    98   
   112   
    99   $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | python -m json.tool
   113   $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | python -m json.tool
   100   [
   114   [
   101       {
   115       {
   102           "debugobshistory.markers": [
   116           "debugobshistory.markers": [
   181   
   195   
   182 
   196 
   183 Actual test
   197 Actual test
   184 -----------
   198 -----------
   185 
   199 
   186   $ hg obslog 'desc(B0)' --hidden
   200   $ hg obslog 'desc(B0)' --hidden --patch
   187   x  0dec01379d3b (2) B0
   201   x  0dec01379d3b (2) B0
   188        pruned by test (*) (glob)
   202        pruned by test (*) (glob)
       
   203          (No patch available yet, no successors)
   189   
   204   
   190   $ hg obslog 'desc(B0)' --hidden --no-graph -Tjson | python -m json.tool
   205   $ hg obslog 'desc(B0)' --hidden --no-graph -Tjson | python -m json.tool
   191   [
   206   [
   192       {
   207       {
   193           "debugobshistory.markers": [
   208           "debugobshistory.markers": [
   203           "debugobshistory.node": "0dec01379d3b",
   218           "debugobshistory.node": "0dec01379d3b",
   204           "debugobshistory.rev": 2,
   219           "debugobshistory.rev": 2,
   205           "debugobshistory.shortdescription": "B0"
   220           "debugobshistory.shortdescription": "B0"
   206       }
   221       }
   207   ]
   222   ]
   208   $ hg obslog 'desc(A0)'
   223   $ hg obslog 'desc(A0)' --patch
   209   @  471f378eab4c (1) A0
   224   @  471f378eab4c (1) A0
   210   
   225   
   211   $ hg obslog 'desc(A0)' --no-graph -Tjson | python -m json.tool
   226   $ hg obslog 'desc(A0)' --no-graph -Tjson | python -m json.tool
   212   [
   227   [
   213       {
   228       {
   314   
   329   
   315 Actual test
   330 Actual test
   316 -----------
   331 -----------
   317 
   332 
   318 Check that debugobshistory on splitted commit show both targets
   333 Check that debugobshistory on splitted commit show both targets
   319   $ hg obslog 471597cad322 --hidden
   334   $ hg obslog 471597cad322 --hidden --patch
   320   x  471597cad322 (1) A0
   335   x  471597cad322 (1) A0
   321        rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   336        rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
       
   337          (No patch available yet, too many successors (2))
   322   
   338   
   323   $ hg obslog 471597cad322 --hidden --no-graph -Tjson | python -m json.tool
   339   $ hg obslog 471597cad322 --hidden --no-graph -Tjson | python -m json.tool
   324   [
   340   [
   325       {
   341       {
   326           "debugobshistory.markers": [
   342           "debugobshistory.markers": [
   346           "debugobshistory.shortdescription": "A0"
   362           "debugobshistory.shortdescription": "A0"
   347       }
   363       }
   348   ]
   364   ]
   349 Check that debugobshistory on the first successor after split show
   365 Check that debugobshistory on the first successor after split show
   350 the revision plus the splitted one
   366 the revision plus the splitted one
   351   $ hg obslog 337fec4d2edc
   367   $ hg obslog 337fec4d2edc --patch
   352   o  337fec4d2edc (2) A0
   368   o  337fec4d2edc (2) A0
   353   |
   369   |
   354   x  471597cad322 (1) A0
   370   x  471597cad322 (1) A0
   355        rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   371        rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
       
   372          (No patch available yet, too many successors (2))
   356   
   373   
   357 With the all option, it should show the three changesets
   374 With the all option, it should show the three changesets
   358   $ hg obslog --all 337fec4d2edc
   375   $ hg obslog --all 337fec4d2edc --patch
   359   o  337fec4d2edc (2) A0
   376   o  337fec4d2edc (2) A0
   360   |
   377   |
   361   | @  f257fde29c7a (3) A0
   378   | @  f257fde29c7a (3) A0
   362   |/
   379   |/
   363   x  471597cad322 (1) A0
   380   x  471597cad322 (1) A0
   364        rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   381        rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
       
   382          (No patch available yet, too many successors (2))
   365   
   383   
   366 Check that debugobshistory on the second successor after split show
   384 Check that debugobshistory on the second successor after split show
   367 the revision plus the splitted one
   385 the revision plus the splitted one
   368   $ hg obslog f257fde29c7a
   386   $ hg obslog f257fde29c7a --patch
   369   @  f257fde29c7a (3) A0
   387   @  f257fde29c7a (3) A0
   370   |
   388   |
   371   x  471597cad322 (1) A0
   389   x  471597cad322 (1) A0
   372        rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   390        rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
       
   391          (No patch available yet, too many successors (2))
   373   
   392   
   374 With the all option, it should show the three changesets
   393 With the all option, it should show the three changesets
   375   $ hg obslog f257fde29c7a --all
   394   $ hg obslog f257fde29c7a --all --patch
   376   o  337fec4d2edc (2) A0
   395   o  337fec4d2edc (2) A0
   377   |
   396   |
   378   | @  f257fde29c7a (3) A0
   397   | @  f257fde29c7a (3) A0
   379   |/
   398   |/
   380   x  471597cad322 (1) A0
   399   x  471597cad322 (1) A0
   381        rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   400        rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
       
   401          (No patch available yet, too many successors (2))
   382   
   402   
   383 Obslog with all option all should also works on the splitted commit
   403 Obslog with all option all should also works on the splitted commit
   384   $ hg obslog -a 471597cad322 --hidden
   404   $ hg obslog -a 471597cad322 --hidden --patch
   385   o  337fec4d2edc (2) A0
   405   o  337fec4d2edc (2) A0
   386   |
   406   |
   387   | @  f257fde29c7a (3) A0
   407   | @  f257fde29c7a (3) A0
   388   |/
   408   |/
   389   x  471597cad322 (1) A0
   409   x  471597cad322 (1) A0
   390        rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   410        rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
       
   411          (No patch available yet, too many successors (2))
   391   
   412   
   392 Check that debugobshistory on both successors after split show
   413 Check that debugobshistory on both successors after split show
   393 a coherent graph
   414 a coherent graph
   394   $ hg obslog 'f257fde29c7a+337fec4d2edc'
   415   $ hg obslog 'f257fde29c7a+337fec4d2edc' --patch
   395   o  337fec4d2edc (2) A0
   416   o  337fec4d2edc (2) A0
   396   |
   417   |
   397   | @  f257fde29c7a (3) A0
   418   | @  f257fde29c7a (3) A0
   398   |/
   419   |/
   399   x  471597cad322 (1) A0
   420   x  471597cad322 (1) A0
   400        rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   421        rewritten(parent, content) by test (*) as 337fec4d2edc, f257fde29c7a (glob)
       
   422          (No patch available yet, too many successors (2))
   401   
   423   
   402   $ hg update 471597cad322
   424   $ hg update 471597cad322
   403   abort: hidden revision '471597cad322'!
   425   abort: hidden revision '471597cad322'!
   404   (use --hidden to access hidden revisions; successors: 337fec4d2edc, f257fde29c7a)
   426   (use --hidden to access hidden revisions; successors: 337fec4d2edc, f257fde29c7a)
   405   [255]
   427   [255]
   559      summary:     ROOT
   581      summary:     ROOT
   560   
   582   
   561 Actual test
   583 Actual test
   562 -----------
   584 -----------
   563 
   585 
   564   $ hg obslog de7290d8b885 --hidden
   586   $ hg obslog de7290d8b885 --hidden --patch
   565   x  de7290d8b885 (1) A0
   587   x  de7290d8b885 (1) A0
   566        rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   588        rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   567   
   589          (No patch available yet, too many successors (4))
   568   $ hg obslog de7290d8b885 --hidden --all
   590   
       
   591   $ hg obslog de7290d8b885 --hidden --all --patch
   569   o  1ae8bc733a14 (4) A0
   592   o  1ae8bc733a14 (4) A0
   570   |
   593   |
   571   | o  337fec4d2edc (2) A0
   594   | o  337fec4d2edc (2) A0
   572   |/
   595   |/
   573   | @  c7f044602e9b (5) A0
   596   | @  c7f044602e9b (5) A0
   574   |/
   597   |/
   575   | o  f257fde29c7a (3) A0
   598   | o  f257fde29c7a (3) A0
   576   |/
   599   |/
   577   x  de7290d8b885 (1) A0
   600   x  de7290d8b885 (1) A0
   578        rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   601        rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
       
   602          (No patch available yet, too many successors (4))
   579   
   603   
   580   $ hg obslog de7290d8b885 --hidden --no-graph -Tjson | python -m json.tool
   604   $ hg obslog de7290d8b885 --hidden --no-graph -Tjson | python -m json.tool
   581   [
   605   [
   582       {
   606       {
   583           "debugobshistory.markers": [
   607           "debugobshistory.markers": [
   603           "debugobshistory.node": "de7290d8b885",
   627           "debugobshistory.node": "de7290d8b885",
   604           "debugobshistory.rev": 1,
   628           "debugobshistory.rev": 1,
   605           "debugobshistory.shortdescription": "A0"
   629           "debugobshistory.shortdescription": "A0"
   606       }
   630       }
   607   ]
   631   ]
   608   $ hg obslog c7f044602e9b
   632   $ hg obslog c7f044602e9b --patch
   609   @  c7f044602e9b (5) A0
   633   @  c7f044602e9b (5) A0
   610   |
   634   |
   611   x  de7290d8b885 (1) A0
   635   x  de7290d8b885 (1) A0
   612        rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   636        rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
       
   637          (No patch available yet, too many successors (4))
   613   
   638   
   614   $ hg obslog c7f044602e9b --no-graph -Tjson | python -m json.tool
   639   $ hg obslog c7f044602e9b --no-graph -Tjson | python -m json.tool
   615   [
   640   [
   616       {
   641       {
   617           "debugobshistory.markers": [],
   642           "debugobshistory.markers": [],
   644           "debugobshistory.rev": 1,
   669           "debugobshistory.rev": 1,
   645           "debugobshistory.shortdescription": "A0"
   670           "debugobshistory.shortdescription": "A0"
   646       }
   671       }
   647   ]
   672   ]
   648 Check that debugobshistory on all heads show a coherent graph
   673 Check that debugobshistory on all heads show a coherent graph
   649   $ hg obslog 2::5
   674   $ hg obslog 2::5 --patch
   650   o  1ae8bc733a14 (4) A0
   675   o  1ae8bc733a14 (4) A0
   651   |
   676   |
   652   | o  337fec4d2edc (2) A0
   677   | o  337fec4d2edc (2) A0
   653   |/
   678   |/
   654   | @  c7f044602e9b (5) A0
   679   | @  c7f044602e9b (5) A0
   655   |/
   680   |/
   656   | o  f257fde29c7a (3) A0
   681   | o  f257fde29c7a (3) A0
   657   |/
   682   |/
   658   x  de7290d8b885 (1) A0
   683   x  de7290d8b885 (1) A0
   659        rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   684        rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   660   
   685          (No patch available yet, too many successors (4))
   661   $ hg obslog 5 --all
   686   
       
   687   $ hg obslog 5 --all --patch
   662   o  1ae8bc733a14 (4) A0
   688   o  1ae8bc733a14 (4) A0
   663   |
   689   |
   664   | o  337fec4d2edc (2) A0
   690   | o  337fec4d2edc (2) A0
   665   |/
   691   |/
   666   | @  c7f044602e9b (5) A0
   692   | @  c7f044602e9b (5) A0
   667   |/
   693   |/
   668   | o  f257fde29c7a (3) A0
   694   | o  f257fde29c7a (3) A0
   669   |/
   695   |/
   670   x  de7290d8b885 (1) A0
   696   x  de7290d8b885 (1) A0
   671        rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   697        rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
       
   698          (No patch available yet, too many successors (4))
   672   
   699   
   673   $ hg update de7290d8b885
   700   $ hg update de7290d8b885
   674   abort: hidden revision 'de7290d8b885'!
   701   abort: hidden revision 'de7290d8b885'!
   675   (use --hidden to access hidden revisions; successors: 337fec4d2edc, f257fde29c7a and 2 more)
   702   (use --hidden to access hidden revisions; successors: 337fec4d2edc, f257fde29c7a and 2 more)
   676   [255]
   703   [255]
   736  Actual test
   763  Actual test
   737  -----------
   764  -----------
   738 
   765 
   739 Check that debugobshistory on the first folded revision show only
   766 Check that debugobshistory on the first folded revision show only
   740 the revision with the target
   767 the revision with the target
   741   $ hg obslog --hidden 471f378eab4c
   768   $ hg obslog --hidden 471f378eab4c --patch
   742   x  471f378eab4c (1) A0
   769   x  471f378eab4c (1) A0
   743        rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
   770        rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
       
   771          diff -r 471f378eab4c -r eb5a0daa2192 B0
       
   772          --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   773          +++ b/B0	Thu Jan 01 00:00:00 1970 +0000
       
   774          @@ -0,0 +1,1 @@
       
   775          +B0
       
   776   
   744   
   777   
   745 Check that with all option, all changesets are shown
   778 Check that with all option, all changesets are shown
   746   $ hg obslog --hidden --all 471f378eab4c
   779   $ hg obslog --hidden --all 471f378eab4c --patch
   747   @    eb5a0daa2192 (3) C0
   780   @    eb5a0daa2192 (3) C0
   748   |\
   781   |\
   749   x |  0dec01379d3b (2) B0
   782   x |  0dec01379d3b (2) B0
   750    /     rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
   783    /     rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
       
   784   |        (No patch available yet, changesets rebased)
   751   |
   785   |
   752   x  471f378eab4c (1) A0
   786   x  471f378eab4c (1) A0
   753        rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
   787        rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
       
   788          diff -r 471f378eab4c -r eb5a0daa2192 B0
       
   789          --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   790          +++ b/B0	Thu Jan 01 00:00:00 1970 +0000
       
   791          @@ -0,0 +1,1 @@
       
   792          +B0
       
   793   
   754   
   794   
   755 Check that debugobshistory on the second folded revision show only
   795 Check that debugobshistory on the second folded revision show only
   756 the revision with the target
   796 the revision with the target
   757   $ hg obslog --hidden 0dec01379d3b
   797   $ hg obslog --hidden 0dec01379d3b --patch
   758   x  0dec01379d3b (2) B0
   798   x  0dec01379d3b (2) B0
   759        rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
   799        rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
       
   800          (No patch available yet, changesets rebased)
   760   
   801   
   761 Check that with all option, all changesets are shown
   802 Check that with all option, all changesets are shown
   762   $ hg obslog --hidden --all 0dec01379d3b
   803   $ hg obslog --hidden --all 0dec01379d3b --patch
   763   @    eb5a0daa2192 (3) C0
   804   @    eb5a0daa2192 (3) C0
   764   |\
   805   |\
   765   x |  0dec01379d3b (2) B0
   806   x |  0dec01379d3b (2) B0
   766    /     rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
   807    /     rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
       
   808   |        (No patch available yet, changesets rebased)
   767   |
   809   |
   768   x  471f378eab4c (1) A0
   810   x  471f378eab4c (1) A0
   769        rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
   811        rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
       
   812          diff -r 471f378eab4c -r eb5a0daa2192 B0
       
   813          --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   814          +++ b/B0	Thu Jan 01 00:00:00 1970 +0000
       
   815          @@ -0,0 +1,1 @@
       
   816          +B0
       
   817   
   770   
   818   
   771 Check that debugobshistory on the successor revision show a coherent
   819 Check that debugobshistory on the successor revision show a coherent
   772 graph
   820 graph
   773   $ hg obslog eb5a0daa2192
   821   $ hg obslog eb5a0daa2192 --patch
   774   @    eb5a0daa2192 (3) C0
   822   @    eb5a0daa2192 (3) C0
   775   |\
   823   |\
   776   x |  0dec01379d3b (2) B0
   824   x |  0dec01379d3b (2) B0
   777    /     rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
   825    /     rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
       
   826   |        (No patch available yet, changesets rebased)
   778   |
   827   |
   779   x  471f378eab4c (1) A0
   828   x  471f378eab4c (1) A0
   780        rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
   829        rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
       
   830          diff -r 471f378eab4c -r eb5a0daa2192 B0
       
   831          --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
   832          +++ b/B0	Thu Jan 01 00:00:00 1970 +0000
       
   833          @@ -0,0 +1,1 @@
       
   834          +B0
       
   835   
   781   
   836   
   782   $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool
   837   $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool
   783   [
   838   [
   784       {
   839       {
   785           "debugobshistory.markers": [],
   840           "debugobshistory.markers": [],
   915   
   970   
   916 Actual test
   971 Actual test
   917 -----------
   972 -----------
   918 
   973 
   919 Check that debugobshistory on the divergent revision show both destinations
   974 Check that debugobshistory on the divergent revision show both destinations
   920   $ hg obslog --hidden 471f378eab4c
   975   $ hg obslog --hidden 471f378eab4c --patch
   921   x  471f378eab4c (1) A0
   976   x  471f378eab4c (1) A0
   922        rewritten(description) by test (*) as 65b757b745b9 (glob)
   977        rewritten(description) by test (*) as 65b757b745b9 (glob)
   923        rewritten(description) by test (*) as fdf9bde5129a (glob)
   978        rewritten(description) by test (*) as fdf9bde5129a (glob)
   924   
   979   
   925 
   980 
   926 Check that with all option, every changeset is shown
   981 Check that with all option, every changeset is shown
   927   $ hg obslog --hidden --all 471f378eab4c
   982   $ hg obslog --hidden --all 471f378eab4c --patch
   928   @  65b757b745b9 (3) A2
   983   @  65b757b745b9 (3) A2
   929   |
   984   |
   930   | o  fdf9bde5129a (2) A1
   985   | o  fdf9bde5129a (2) A1
   931   |/
   986   |/
   932   x  471f378eab4c (1) A0
   987   x  471f378eab4c (1) A0
   971           "debugobshistory.shortdescription": "A0"
  1026           "debugobshistory.shortdescription": "A0"
   972       }
  1027       }
   973   ]
  1028   ]
   974 Check that debugobshistory on the first diverged revision show the revision
  1029 Check that debugobshistory on the first diverged revision show the revision
   975 and the diverent one
  1030 and the diverent one
   976   $ hg obslog fdf9bde5129a
  1031   $ hg obslog fdf9bde5129a --patch
   977   o  fdf9bde5129a (2) A1
  1032   o  fdf9bde5129a (2) A1
   978   |
  1033   |
   979   x  471f378eab4c (1) A0
  1034   x  471f378eab4c (1) A0
   980        rewritten(description) by test (*) as 65b757b745b9 (glob)
  1035        rewritten(description) by test (*) as 65b757b745b9 (glob)
   981        rewritten(description) by test (*) as fdf9bde5129a (glob)
  1036        rewritten(description) by test (*) as fdf9bde5129a (glob)
   982   
  1037   
   983 
  1038 
   984 Check that all option show all of them
  1039 Check that all option show all of them
   985   $ hg obslog fdf9bde5129a -a
  1040   $ hg obslog fdf9bde5129a -a --patch
   986   @  65b757b745b9 (3) A2
  1041   @  65b757b745b9 (3) A2
   987   |
  1042   |
   988   | o  fdf9bde5129a (2) A1
  1043   | o  fdf9bde5129a (2) A1
   989   |/
  1044   |/
   990   x  471f378eab4c (1) A0
  1045   x  471f378eab4c (1) A0
   991        rewritten(description) by test (*) as 65b757b745b9 (glob)
  1046        rewritten(description) by test (*) as 65b757b745b9 (glob)
   992        rewritten(description) by test (*) as fdf9bde5129a (glob)
  1047        rewritten(description) by test (*) as fdf9bde5129a (glob)
   993   
  1048   
   994 Check that debugobshistory on the second diverged revision show the revision
  1049 Check that debugobshistory on the second diverged revision show the revision
   995 and the diverent one
  1050 and the diverent one
   996   $ hg obslog 65b757b745b9
  1051   $ hg obslog 65b757b745b9 --patch
   997   @  65b757b745b9 (3) A2
  1052   @  65b757b745b9 (3) A2
   998   |
  1053   |
   999   x  471f378eab4c (1) A0
  1054   x  471f378eab4c (1) A0
  1000        rewritten(description) by test (*) as 65b757b745b9 (glob)
  1055        rewritten(description) by test (*) as 65b757b745b9 (glob)
  1001        rewritten(description) by test (*) as fdf9bde5129a (glob)
  1056        rewritten(description) by test (*) as fdf9bde5129a (glob)
  1002   
  1057   
  1003 Check that all option show all of them
  1058 Check that all option show all of them
  1004   $ hg obslog 65b757b745b9 -a
  1059   $ hg obslog 65b757b745b9 -a --patch
  1005   @  65b757b745b9 (3) A2
  1060   @  65b757b745b9 (3) A2
  1006   |
  1061   |
  1007   | o  fdf9bde5129a (2) A1
  1062   | o  fdf9bde5129a (2) A1
  1008   |/
  1063   |/
  1009   x  471f378eab4c (1) A0
  1064   x  471f378eab4c (1) A0
  1010        rewritten(description) by test (*) as 65b757b745b9 (glob)
  1065        rewritten(description) by test (*) as 65b757b745b9 (glob)
  1011        rewritten(description) by test (*) as fdf9bde5129a (glob)
  1066        rewritten(description) by test (*) as fdf9bde5129a (glob)
  1012   
  1067   
  1013 Check that debugobshistory on the both diverged revision show a coherent
  1068 Check that debugobshistory on the both diverged revision show a coherent
  1014 graph
  1069 graph
  1015   $ hg obslog '65b757b745b9+fdf9bde5129a'
  1070   $ hg obslog '65b757b745b9+fdf9bde5129a' --patch
  1016   @  65b757b745b9 (3) A2
  1071   @  65b757b745b9 (3) A2
  1017   |
  1072   |
  1018   | o  fdf9bde5129a (2) A1
  1073   | o  fdf9bde5129a (2) A1
  1019   |/
  1074   |/
  1020   x  471f378eab4c (1) A0
  1075   x  471f378eab4c (1) A0
  1149   
  1204   
  1150  Actual test
  1205  Actual test
  1151  -----------
  1206  -----------
  1152 
  1207 
  1153 Check that debugobshistory on head show a coherent graph
  1208 Check that debugobshistory on head show a coherent graph
  1154   $ hg obslog eb5a0daa2192
  1209   $ hg obslog eb5a0daa2192 --patch
  1155   @    eb5a0daa2192 (4) C0
  1210   @    eb5a0daa2192 (4) C0
  1156   |\
  1211   |\
  1157   x |  471f378eab4c (1) A0
  1212   x |  471f378eab4c (1) A0
  1158    /     rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
  1213    /     rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
       
  1214   |        diff -r 471f378eab4c -r eb5a0daa2192 B0
       
  1215   |        --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1216   |        +++ b/B0	Thu Jan 01 00:00:00 1970 +0000
       
  1217   |        @@ -0,0 +1,1 @@
       
  1218   |        +B0
       
  1219   |
  1159   |
  1220   |
  1160   x  b7ea6d14e664 (3) B1
  1221   x  b7ea6d14e664 (3) B1
  1161   |    rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
  1222   |    rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
       
  1223   |      (No patch available yet, changesets rebased)
  1162   |
  1224   |
  1163   x  0dec01379d3b (2) B0
  1225   x  0dec01379d3b (2) B0
  1164        rewritten(description) by test (*) as b7ea6d14e664 (glob)
  1226        rewritten(description) by test (*) as b7ea6d14e664 (glob)
  1165   
  1227   
  1166 Check that obslog on ROOT with all option show everything
  1228 Check that obslog on ROOT with all option show everything
  1167   $ hg obslog 1 --hidden --all
  1229   $ hg obslog 1 --hidden --all --patch
  1168   @    eb5a0daa2192 (4) C0
  1230   @    eb5a0daa2192 (4) C0
  1169   |\
  1231   |\
  1170   x |  471f378eab4c (1) A0
  1232   x |  471f378eab4c (1) A0
  1171    /     rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
  1233    /     rewritten(description, content) by test (*) as eb5a0daa2192 (glob)
       
  1234   |        diff -r 471f378eab4c -r eb5a0daa2192 B0
       
  1235   |        --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
       
  1236   |        +++ b/B0	Thu Jan 01 00:00:00 1970 +0000
       
  1237   |        @@ -0,0 +1,1 @@
       
  1238   |        +B0
       
  1239   |
  1172   |
  1240   |
  1173   x  b7ea6d14e664 (3) B1
  1241   x  b7ea6d14e664 (3) B1
  1174   |    rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
  1242   |    rewritten(description, parent, content) by test (*) as eb5a0daa2192 (glob)
       
  1243   |      (No patch available yet, changesets rebased)
  1175   |
  1244   |
  1176   x  0dec01379d3b (2) B0
  1245   x  0dec01379d3b (2) B0
  1177        rewritten(description) by test (*) as b7ea6d14e664 (glob)
  1246        rewritten(description) by test (*) as b7ea6d14e664 (glob)
  1178   
  1247   
  1179   $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool
  1248   $ hg obslog eb5a0daa2192 --no-graph -Tjson | python -m json.tool
  1338      summary:     ROOT
  1407      summary:     ROOT
  1339   
  1408   
  1340  Actual test
  1409  Actual test
  1341  -----------
  1410  -----------
  1342 
  1411 
  1343   $ hg obslog 7a230b46bf61
  1412   $ hg obslog 7a230b46bf61 --patch
  1344   @  7a230b46bf61 (3) A2
  1413   @  7a230b46bf61 (3) A2
  1345   |
  1414   |
  1346   x  fdf9bde5129a (2) A1
  1415   x  fdf9bde5129a (2) A1
  1347   |    rewritten(description) by test (*) as 7a230b46bf61 (glob)
  1416   |    rewritten(description) by test (*) as 7a230b46bf61 (glob)
  1348   |
  1417   |
  1361   (run 'hg heads' to see heads, 'hg merge' to merge)
  1430   (run 'hg heads' to see heads, 'hg merge' to merge)
  1362   working directory parent is obsolete! (471f378eab4c)
  1431   working directory parent is obsolete! (471f378eab4c)
  1363   (use 'hg evolve' to update to its successor: 7a230b46bf61)
  1432   (use 'hg evolve' to update to its successor: 7a230b46bf61)
  1364 Check that debugobshistory works with markers pointing to missing local
  1433 Check that debugobshistory works with markers pointing to missing local
  1365 changectx
  1434 changectx
  1366   $ hg obslog 7a230b46bf61
  1435   $ hg obslog 7a230b46bf61 --patch
  1367   o  7a230b46bf61 (2) A2
  1436   o  7a230b46bf61 (2) A2
  1368   |
  1437   |
  1369   x  fdf9bde5129a
  1438   x  fdf9bde5129a
  1370   |    rewritten(description) by test (*) as 7a230b46bf61 (glob)
  1439   |    rewritten(description) by test (*) as 7a230b46bf61 (glob)
       
  1440   |      (No patch available yet, context is not local)
  1371   |
  1441   |
  1372   @  471f378eab4c (1) A0
  1442   @  471f378eab4c (1) A0
  1373        rewritten(description) by test (*) as fdf9bde5129a (glob)
  1443        rewritten(description) by test (*) as fdf9bde5129a (glob)
  1374   
  1444          (No patch available yet, succ is unknown locally)
  1375   $ hg obslog 7a230b46bf61 --color=debug
  1445   
       
  1446   $ hg obslog 7a230b46bf61 --color=debug --patch
  1376   o  [evolve.node|7a230b46bf61] [evolve.rev|(2)] [evolve.short_description|A2]
  1447   o  [evolve.node|7a230b46bf61] [evolve.rev|(2)] [evolve.short_description|A2]
  1377   |
  1448   |
  1378   x  [evolve.node evolve.missing_change_ctx|fdf9bde5129a]
  1449   x  [evolve.node evolve.missing_change_ctx|fdf9bde5129a]
  1379   |    [evolve.verb|rewritten](description) by [evolve.user|test] [evolve.date|(*)] as [evolve.node|7a230b46bf61] (glob)
  1450   |    [evolve.verb|rewritten](description) by [evolve.user|test] [evolve.date|(*)] as [evolve.node|7a230b46bf61] (glob)
       
  1451   |      (No patch available yet, context is not local)
  1380   |
  1452   |
  1381   @  [evolve.node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0]
  1453   @  [evolve.node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0]
  1382        [evolve.verb|rewritten](description) by [evolve.user|test] [evolve.date|(*)] as [evolve.node|fdf9bde5129a] (glob)
  1454        [evolve.verb|rewritten](description) by [evolve.user|test] [evolve.date|(*)] as [evolve.node|fdf9bde5129a] (glob)
  1383   
  1455          (No patch available yet, succ is unknown locally)
       
  1456