tests/test-evolve-obshistory.t
changeset 2484 262d684851dc
parent 2483 db565cc05987
child 2531 d3d686f05458
child 2546 abe6dfbdc744
equal deleted inserted replaced
2483:db565cc05987 2484:262d684851dc
   338   o  337fec4d2edc (2) A0
   338   o  337fec4d2edc (2) A0
   339   |
   339   |
   340   x  471597cad322 (1) A0
   340   x  471597cad322 (1) A0
   341        rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   341        rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   342   
   342   
       
   343 With the all option, it should show the three changesets
       
   344   $ hg obslog --all 337fec4d2edc
       
   345   o  337fec4d2edc (2) A0
       
   346   |
       
   347   | @  f257fde29c7a (3) A0
       
   348   |/
       
   349   x  471597cad322 (1) A0
       
   350        rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob)
       
   351   
   343 Check that debugobshistory on the second successor after split show
   352 Check that debugobshistory on the second successor after split show
   344 the revision plus the splitted one
   353 the revision plus the splitted one
   345   $ hg obslog f257fde29c7a
   354   $ hg obslog f257fde29c7a
   346   @  f257fde29c7a (3) A0
   355   @  f257fde29c7a (3) A0
   347   |
   356   |
       
   357   x  471597cad322 (1) A0
       
   358        rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob)
       
   359   
       
   360 With the all option, it should show the three changesets
       
   361   $ hg obslog f257fde29c7a --all
       
   362   o  337fec4d2edc (2) A0
       
   363   |
       
   364   | @  f257fde29c7a (3) A0
       
   365   |/
       
   366   x  471597cad322 (1) A0
       
   367        rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob)
       
   368   
       
   369 Obslog with all option all should also works on the splitted commit
       
   370   $ hg obslog -a 471597cad322 --hidden
       
   371   o  337fec4d2edc (2) A0
       
   372   |
       
   373   | @  f257fde29c7a (3) A0
       
   374   |/
   348   x  471597cad322 (1) A0
   375   x  471597cad322 (1) A0
   349        rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   376        rewritten by test (*) as 337fec4d2edc, f257fde29c7a (glob)
   350   
   377   
   351 Check that debugobshistory on both successors after split show
   378 Check that debugobshistory on both successors after split show
   352 a coherent graph
   379 a coherent graph
   522 
   549 
   523   $ hg obslog de7290d8b885 --hidden
   550   $ hg obslog de7290d8b885 --hidden
   524   x  de7290d8b885 (1) A0
   551   x  de7290d8b885 (1) A0
   525        rewritten by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   552        rewritten by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   526   
   553   
       
   554   $ hg obslog de7290d8b885 --hidden --all
       
   555   o  1ae8bc733a14 (4) A0
       
   556   |
       
   557   | o  337fec4d2edc (2) A0
       
   558   |/
       
   559   | @  c7f044602e9b (5) A0
       
   560   |/
       
   561   | o  f257fde29c7a (3) A0
       
   562   |/
       
   563   x  de7290d8b885 (1) A0
       
   564        rewritten by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
       
   565   
   527   $ hg obslog de7290d8b885 --hidden --no-graph -Tjson | python -m json.tool
   566   $ hg obslog de7290d8b885 --hidden --no-graph -Tjson | python -m json.tool
   528   [
   567   [
   529       {
   568       {
   530           "debugobshistory.markers": [
   569           "debugobshistory.markers": [
   531               {
   570               {
   595   | o  f257fde29c7a (3) A0
   634   | o  f257fde29c7a (3) A0
   596   |/
   635   |/
   597   x  de7290d8b885 (1) A0
   636   x  de7290d8b885 (1) A0
   598        rewritten by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   637        rewritten by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
   599   
   638   
       
   639   $ hg obslog 5 --all
       
   640   o  1ae8bc733a14 (4) A0
       
   641   |
       
   642   | o  337fec4d2edc (2) A0
       
   643   |/
       
   644   | @  c7f044602e9b (5) A0
       
   645   |/
       
   646   | o  f257fde29c7a (3) A0
       
   647   |/
       
   648   x  de7290d8b885 (1) A0
       
   649        rewritten by test (*) as 1ae8bc733a14, 337fec4d2edc, c7f044602e9b, f257fde29c7a (glob)
       
   650   
   600   $ hg update de7290d8b885
   651   $ hg update de7290d8b885
   601   abort: hidden revision 'de7290d8b885'!
   652   abort: hidden revision 'de7290d8b885'!
   602   (use --hidden to access hidden revisions; successors: 337fec4d2edc, f257fde29c7a and 2 more)
   653   (use --hidden to access hidden revisions; successors: 337fec4d2edc, f257fde29c7a and 2 more)
   603   [255]
   654   [255]
   604   $ hg update --hidden 'min(desc(A0))'
   655   $ hg update --hidden 'min(desc(A0))'
   667 the revision with the target
   718 the revision with the target
   668   $ hg obslog --hidden 471f378eab4c
   719   $ hg obslog --hidden 471f378eab4c
   669   x  471f378eab4c (1) A0
   720   x  471f378eab4c (1) A0
   670        rewritten by test (*) as eb5a0daa2192 (glob)
   721        rewritten by test (*) as eb5a0daa2192 (glob)
   671   
   722   
       
   723 Check that with all option, all changesets are shown
       
   724   $ hg obslog --hidden --all 471f378eab4c
       
   725   @    eb5a0daa2192 (3) C0
       
   726   |\
       
   727   x |  0dec01379d3b (2) B0
       
   728    /     rewritten by test (*) as eb5a0daa2192 (glob)
       
   729   |
       
   730   x  471f378eab4c (1) A0
       
   731        rewritten by test (*) as eb5a0daa2192 (glob)
       
   732   
   672 Check that debugobshistory on the second folded revision show only
   733 Check that debugobshistory on the second folded revision show only
   673 the revision with the target
   734 the revision with the target
   674   $ hg obslog --hidden 0dec01379d3b
   735   $ hg obslog --hidden 0dec01379d3b
   675   x  0dec01379d3b (2) B0
   736   x  0dec01379d3b (2) B0
       
   737        rewritten by test (*) as eb5a0daa2192 (glob)
       
   738   
       
   739 Check that with all option, all changesets are shown
       
   740   $ hg obslog --hidden --all 0dec01379d3b
       
   741   @    eb5a0daa2192 (3) C0
       
   742   |\
       
   743   x |  0dec01379d3b (2) B0
       
   744    /     rewritten by test (*) as eb5a0daa2192 (glob)
       
   745   |
       
   746   x  471f378eab4c (1) A0
   676        rewritten by test (*) as eb5a0daa2192 (glob)
   747        rewritten by test (*) as eb5a0daa2192 (glob)
   677   
   748   
   678 Check that debugobshistory on the successor revision show a coherent
   749 Check that debugobshistory on the successor revision show a coherent
   679 graph
   750 graph
   680   $ hg obslog eb5a0daa2192
   751   $ hg obslog eb5a0daa2192
   818   $ hg obslog --hidden 471f378eab4c
   889   $ hg obslog --hidden 471f378eab4c
   819   x  471f378eab4c (1) A0
   890   x  471f378eab4c (1) A0
   820        rewritten by test (*) as 65b757b745b9 (glob)
   891        rewritten by test (*) as 65b757b745b9 (glob)
   821        rewritten by test (*) as fdf9bde5129a (glob)
   892        rewritten by test (*) as fdf9bde5129a (glob)
   822   
   893   
       
   894 
       
   895 Check that with all option, every changeset is shown
       
   896   $ hg obslog --hidden --all 471f378eab4c
       
   897   @  65b757b745b9 (3) A2
       
   898   |
       
   899   | o  fdf9bde5129a (2) A1
       
   900   |/
       
   901   x  471f378eab4c (1) A0
       
   902        rewritten by test (*) as 65b757b745b9 (glob)
       
   903        rewritten by test (*) as fdf9bde5129a (glob)
       
   904   
   823   $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | python -m json.tool
   905   $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | python -m json.tool
   824   [
   906   [
   825       {
   907       {
   826           "debugobshistory.markers": [
   908           "debugobshistory.markers": [
   827               {
   909               {
   859   |
   941   |
   860   x  471f378eab4c (1) A0
   942   x  471f378eab4c (1) A0
   861        rewritten by test (*) as 65b757b745b9 (glob)
   943        rewritten by test (*) as 65b757b745b9 (glob)
   862        rewritten by test (*) as fdf9bde5129a (glob)
   944        rewritten by test (*) as fdf9bde5129a (glob)
   863   
   945   
       
   946 
       
   947 Check that all option show all of them
       
   948   $ hg obslog fdf9bde5129a -a
       
   949   @  65b757b745b9 (3) A2
       
   950   |
       
   951   | o  fdf9bde5129a (2) A1
       
   952   |/
       
   953   x  471f378eab4c (1) A0
       
   954        rewritten by test (*) as 65b757b745b9 (glob)
       
   955        rewritten by test (*) as fdf9bde5129a (glob)
       
   956   
   864 Check that debugobshistory on the second diverged revision show the revision
   957 Check that debugobshistory on the second diverged revision show the revision
   865 and the diverent one
   958 and the diverent one
   866   $ hg obslog 65b757b745b9
   959   $ hg obslog 65b757b745b9
   867   @  65b757b745b9 (3) A2
   960   @  65b757b745b9 (3) A2
   868   |
   961   |
       
   962   x  471f378eab4c (1) A0
       
   963        rewritten by test (*) as 65b757b745b9 (glob)
       
   964        rewritten by test (*) as fdf9bde5129a (glob)
       
   965   
       
   966 Check that all option show all of them
       
   967   $ hg obslog 65b757b745b9 -a
       
   968   @  65b757b745b9 (3) A2
       
   969   |
       
   970   | o  fdf9bde5129a (2) A1
       
   971   |/
   869   x  471f378eab4c (1) A0
   972   x  471f378eab4c (1) A0
   870        rewritten by test (*) as 65b757b745b9 (glob)
   973        rewritten by test (*) as 65b757b745b9 (glob)
   871        rewritten by test (*) as fdf9bde5129a (glob)
   974        rewritten by test (*) as fdf9bde5129a (glob)
   872   
   975   
   873 Check that debugobshistory on the both diverged revision show a coherent
   976 Check that debugobshistory on the both diverged revision show a coherent
  1004  Actual test
  1107  Actual test
  1005  -----------
  1108  -----------
  1006 
  1109 
  1007 Check that debugobshistory on head show a coherent graph
  1110 Check that debugobshistory on head show a coherent graph
  1008   $ hg obslog eb5a0daa2192
  1111   $ hg obslog eb5a0daa2192
       
  1112   @    eb5a0daa2192 (4) C0
       
  1113   |\
       
  1114   x |  471f378eab4c (1) A0
       
  1115    /     rewritten by test (*) as eb5a0daa2192 (glob)
       
  1116   |
       
  1117   x  b7ea6d14e664 (3) B1
       
  1118   |    rewritten by test (*) as eb5a0daa2192 (glob)
       
  1119   |
       
  1120   x  0dec01379d3b (2) B0
       
  1121        rewritten by test (*) as b7ea6d14e664 (glob)
       
  1122   
       
  1123 Check that obslog on ROOT with all option show everything
       
  1124   $ hg obslog 1 --hidden --all
  1009   @    eb5a0daa2192 (4) C0
  1125   @    eb5a0daa2192 (4) C0
  1010   |\
  1126   |\
  1011   x |  471f378eab4c (1) A0
  1127   x |  471f378eab4c (1) A0
  1012    /     rewritten by test (*) as eb5a0daa2192 (glob)
  1128    /     rewritten by test (*) as eb5a0daa2192 (glob)
  1013   |
  1129   |