tests/test-evolve-obshistory.t
branchmercurial-4.1
changeset 2595 54ac473663ff
parent 2531 d3d686f05458
parent 2585 b5e3fe610beb
child 2596 44dd9d76afb2
child 2700 52d5c5ce27e4
equal deleted inserted replaced
2531:d3d686f05458 2595:54ac473663ff
    11   > [phases]
    11   > [phases]
    12   > publish=False
    12   > publish=False
    13   > [extensions]
    13   > [extensions]
    14   > evolve =
    14   > evolve =
    15   > color =
    15   > color =
       
    16   > [experimental]
       
    17   > evolution.effect-flags = yes
    16   > EOF
    18   > EOF
    17 
    19 
    18 Test output on amended commit
    20 Test output on amended commit
    19 =============================
    21 =============================
    20 
    22 
    56 -----------
    58 -----------
    57   $ hg obslog 4ae3a4151de9
    59   $ hg obslog 4ae3a4151de9
    58   @  4ae3a4151de9 (3) A1
    60   @  4ae3a4151de9 (3) A1
    59   |
    61   |
    60   x  471f378eab4c (1) A0
    62   x  471f378eab4c (1) A0
    61        rewritten by test (*) as 4ae3a4151de9 (glob)
    63        rewritten(description, content) by test (*) as 4ae3a4151de9 (glob)
    62   
    64   
    63   $ hg obslog 4ae3a4151de9 --no-graph -Tjson | python -m json.tool
    65   $ hg obslog 4ae3a4151de9 --no-graph -Tjson | python -m json.tool
    64   [
    66   [
    65       {
    67       {
    66           "debugobshistory.markers": [],
    68           "debugobshistory.markers": [],
    69           "debugobshistory.shortdescription": "A1"
    71           "debugobshistory.shortdescription": "A1"
    70       },
    72       },
    71       {
    73       {
    72           "debugobshistory.markers": [
    74           "debugobshistory.markers": [
    73               {
    75               {
       
    76                   "debugobshistory.effect": [
       
    77                       "description",
       
    78                       "content"
       
    79                   ],
    74                   "debugobshistory.marker_date": [
    80                   "debugobshistory.marker_date": [
    75                       *, (glob)
    81                       *, (glob)
    76                       0 (glob)
    82                       0 (glob)
    77                   ],
    83                   ],
    78                   "debugobshistory.marker_user": "test",
    84                   "debugobshistory.marker_user": "test",
    87           "debugobshistory.shortdescription": "A0"
    93           "debugobshistory.shortdescription": "A0"
    88       }
    94       }
    89   ]
    95   ]
    90   $ hg obslog --hidden 471f378eab4c
    96   $ hg obslog --hidden 471f378eab4c
    91   x  471f378eab4c (1) A0
    97   x  471f378eab4c (1) A0
    92        rewritten by test (*) as 4ae3a4151de9 (glob)
    98        rewritten(description, content) by test (*) as 4ae3a4151de9 (glob)
    93   
    99   
    94   $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | python -m json.tool
   100   $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | python -m json.tool
    95   [
   101   [
    96       {
   102       {
    97           "debugobshistory.markers": [
   103           "debugobshistory.markers": [
    98               {
   104               {
       
   105                   "debugobshistory.effect": [
       
   106                       *, (glob)
       
   107                       "content"
       
   108                   ],
    99                   "debugobshistory.marker_date": [
   109                   "debugobshistory.marker_date": [
   100                       *, (glob)
   110                       *, (glob)
   101                       0 (glob)
   111                       0 (glob)
   102                   ],
   112                   ],
   103                   "debugobshistory.marker_user": "test",
   113                   "debugobshistory.marker_user": "test",
   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]
   548 Actual test
   562 Actual test
   549 -----------
   563 -----------
   550 
   564 
   551   $ hg obslog de7290d8b885 --hidden
   565   $ hg obslog de7290d8b885 --hidden
   552   x  de7290d8b885 (1) A0
   566   x  de7290d8b885 (1) A0
   553        rewritten by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   567        rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   554   
   568   
   555   $ hg obslog de7290d8b885 --hidden --all
   569   $ hg obslog de7290d8b885 --hidden --all
   556   o  1ae8bc733a14 (4) A0
   570   o  1ae8bc733a14 (4) A0
   557   |
   571   |
   558   | o  337fec4d2edc (2) A0
   572   | o  337fec4d2edc (2) A0
   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",
   590   ]
   608   ]
   591   $ hg obslog c7f044602e9b
   609   $ hg obslog c7f044602e9b
   592   @  c7f044602e9b (5) A0
   610   @  c7f044602e9b (5) A0
   593   |
   611   |
   594   x  de7290d8b885 (1) A0
   612   x  de7290d8b885 (1) A0
   595        rewritten by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   613        rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   596   
   614   
   597   $ hg obslog c7f044602e9b --no-graph -Tjson | python -m json.tool
   615   $ hg obslog c7f044602e9b --no-graph -Tjson | python -m json.tool
   598   [
   616   [
   599       {
   617       {
   600           "debugobshistory.markers": [],
   618           "debugobshistory.markers": [],
   603           "debugobshistory.shortdescription": "A0"
   621           "debugobshistory.shortdescription": "A0"
   604       },
   622       },
   605       {
   623       {
   606           "debugobshistory.markers": [
   624           "debugobshistory.markers": [
   607               {
   625               {
       
   626                   "debugobshistory.effect": [
       
   627                       "parent",
       
   628                       "content"
       
   629                   ],
   608                   "debugobshistory.marker_date": [
   630                   "debugobshistory.marker_date": [
   609                       *, (glob)
   631                       *, (glob)
   610                       0 (glob)
   632                       0 (glob)
   611                   ],
   633                   ],
   612                   "debugobshistory.marker_user": "test",
   634                   "debugobshistory.marker_user": "test",
   633   | @  c7f044602e9b (5) A0
   655   | @  c7f044602e9b (5) A0
   634   |/
   656   |/
   635   | o  f257fde29c7a (3) A0
   657   | o  f257fde29c7a (3) A0
   636   |/
   658   |/
   637   x  de7290d8b885 (1) A0
   659   x  de7290d8b885 (1) A0
   638        rewritten by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   660        rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   639   
   661   
   640   $ hg obslog 5 --all
   662   $ hg obslog 5 --all
   641   o  1ae8bc733a14 (4) A0
   663   o  1ae8bc733a14 (4) A0
   642   |
   664   |
   643   | o  337fec4d2edc (2) A0
   665   | o  337fec4d2edc (2) A0
   645   | @  c7f044602e9b (5) A0
   667   | @  c7f044602e9b (5) A0
   646   |/
   668   |/
   647   | o  f257fde29c7a (3) A0
   669   | o  f257fde29c7a (3) A0
   648   |/
   670   |/
   649   x  de7290d8b885 (1) A0
   671   x  de7290d8b885 (1) A0
   650        rewritten by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   672        rewritten(parent, content) by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   651   
   673   
   652   $ hg update de7290d8b885
   674   $ hg update de7290d8b885
   653   abort: hidden revision 'de7290d8b885'!
   675   abort: hidden revision 'de7290d8b885'!
   654   (use --hidden to access hidden revisions)
   676   (use --hidden to access hidden revisions)
   655   [255]
   677   [255]
   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": [],
   767           "debugobshistory.shortdescription": "C0"
   789           "debugobshistory.shortdescription": "C0"
   768       },
   790       },
   769       {
   791       {
   770           "debugobshistory.markers": [
   792           "debugobshistory.markers": [
   771               {
   793               {
       
   794                   "debugobshistory.effect": [
       
   795                       "description",
       
   796                       "content"
       
   797                   ],
   772                   "debugobshistory.marker_date": [
   798                   "debugobshistory.marker_date": [
   773                       *, (glob)
   799                       *, (glob)
   774                       0 (glob)
   800                       0 (glob)
   775                   ],
   801                   ],
   776                   "debugobshistory.marker_user": "test",
   802                   "debugobshistory.marker_user": "test",
   785           "debugobshistory.shortdescription": "A0"
   811           "debugobshistory.shortdescription": "A0"
   786       },
   812       },
   787       {
   813       {
   788           "debugobshistory.markers": [
   814           "debugobshistory.markers": [
   789               {
   815               {
       
   816                   "debugobshistory.effect": [
       
   817                       "description",
       
   818                       "parent",
       
   819                       "content"
       
   820                   ],
   790                   "debugobshistory.marker_date": [
   821                   "debugobshistory.marker_date": [
   791                       *, (glob)
   822                       *, (glob)
   792                       0 (glob)
   823                       0 (glob)
   793                   ],
   824                   ],
   794                   "debugobshistory.marker_user": "test",
   825                   "debugobshistory.marker_user": "test",
   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",
   917                       "65b757b745b9"
   951                       "65b757b745b9"
   918                   ],
   952                   ],
   919                   "debugobshistory.verb": "rewritten"
   953                   "debugobshistory.verb": "rewritten"
   920               },
   954               },
   921               {
   955               {
       
   956                   "debugobshistory.effect": [
       
   957                       "description"
       
   958                   ],
   922                   "debugobshistory.marker_date": [
   959                   "debugobshistory.marker_date": [
   923                       *, (glob)
   960                       *, (glob)
   924                       0 (glob)
   961                       0 (glob)
   925                   ],
   962                   ],
   926                   "debugobshistory.marker_user": "test",
   963                   "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": [],
   994           "debugobshistory.shortdescription": "A2"
  1031           "debugobshistory.shortdescription": "A2"
   995       },
  1032       },
   996       {
  1033       {
   997           "debugobshistory.markers": [
  1034           "debugobshistory.markers": [
   998               {
  1035               {
       
  1036                   "debugobshistory.effect": [
       
  1037                       "description"
       
  1038                   ],
   999                   "debugobshistory.marker_date": [
  1039                   "debugobshistory.marker_date": [
  1000                       *, (glob)
  1040                       *, (glob)
  1001                       0 (glob)
  1041                       0 (glob)
  1002                   ],
  1042                   ],
  1003                   "debugobshistory.marker_user": "test",
  1043                   "debugobshistory.marker_user": "test",
  1005                       "65b757b745b9"
  1045                       "65b757b745b9"
  1006                   ],
  1046                   ],
  1007                   "debugobshistory.verb": "rewritten"
  1047                   "debugobshistory.verb": "rewritten"
  1008               },
  1048               },
  1009               {
  1049               {
       
  1050                   "debugobshistory.effect": [
       
  1051                       "description"
       
  1052                   ],
  1010                   "debugobshistory.marker_date": [
  1053                   "debugobshistory.marker_date": [
  1011                       *, (glob)
  1054                       *, (glob)
  1012                       0 (glob)
  1055                       0 (glob)
  1013                   ],
  1056                   ],
  1014                   "debugobshistory.marker_user": "test",
  1057                   "debugobshistory.marker_user": "test",
  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": [],
  1143           "debugobshistory.shortdescription": "C0"
  1186           "debugobshistory.shortdescription": "C0"
  1144       },
  1187       },
  1145       {
  1188       {
  1146           "debugobshistory.markers": [
  1189           "debugobshistory.markers": [
  1147               {
  1190               {
       
  1191                   "debugobshistory.effect": [
       
  1192                       *, (glob)
       
  1193                       *, (glob)
       
  1194                       "content"
       
  1195                   ],
  1148                   "debugobshistory.marker_date": [
  1196                   "debugobshistory.marker_date": [
  1149                       *, (glob)
  1197                       *, (glob)
  1150                       0 (glob)
  1198                       0 (glob)
  1151                   ],
  1199                   ],
  1152                   "debugobshistory.marker_user": "test",
  1200                   "debugobshistory.marker_user": "test",
  1161           "debugobshistory.shortdescription": "B1"
  1209           "debugobshistory.shortdescription": "B1"
  1162       },
  1210       },
  1163       {
  1211       {
  1164           "debugobshistory.markers": [
  1212           "debugobshistory.markers": [
  1165               {
  1213               {
       
  1214                   "debugobshistory.effect": [
       
  1215                       "description"
       
  1216                   ],
  1166                   "debugobshistory.marker_date": [
  1217                   "debugobshistory.marker_date": [
  1167                       *, (glob)
  1218                       *, (glob)
  1168                       0 (glob)
  1219                       0 (glob)
  1169                   ],
  1220                   ],
  1170                   "debugobshistory.marker_user": "test",
  1221                   "debugobshistory.marker_user": "test",
  1179           "debugobshistory.shortdescription": "B0"
  1230           "debugobshistory.shortdescription": "B0"
  1180       },
  1231       },
  1181       {
  1232       {
  1182           "debugobshistory.markers": [
  1233           "debugobshistory.markers": [
  1183               {
  1234               {
       
  1235                   "debugobshistory.effect": [
       
  1236                       "description",
       
  1237                       "content"
       
  1238                   ],
  1184                   "debugobshistory.marker_date": [
  1239                   "debugobshistory.marker_date": [
  1185                       *, (glob)
  1240                       *, (glob)
  1186                       0 (glob)
  1241                       0 (glob)
  1187                   ],
  1242                   ],
  1188                   "debugobshistory.marker_user": "test",
  1243                   "debugobshistory.marker_user": "test",
  1288 
  1343 
  1289   $ hg obslog 7a230b46bf61
  1344   $ hg obslog 7a230b46bf61
  1290   @  7a230b46bf61 (3) A2
  1345   @  7a230b46bf61 (3) A2
  1291   |
  1346   |
  1292   x  fdf9bde5129a (2) A1
  1347   x  fdf9bde5129a (2) A1
  1293   |    rewritten by test (*) as 7a230b46bf61 (glob)
  1348   |    rewritten(description) by test (*) as 7a230b46bf61 (glob)
  1294   |
  1349   |
  1295   x  471f378eab4c (1) A0
  1350   x  471f378eab4c (1) A0
  1296        rewritten by test (*) as fdf9bde5129a (glob)
  1351        rewritten(description) by test (*) as fdf9bde5129a (glob)
  1297   
  1352   
  1298   $ cd $TESTTMP/local-remote-markers-2
  1353   $ cd $TESTTMP/local-remote-markers-2
  1299   $ hg pull
  1354   $ hg pull
  1300   pulling from $TESTTMP/local-remote-markers-1
  1355   pulling from $TESTTMP/local-remote-markers-1
  1301   searching for changes
  1356   searching for changes
  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