tests/test-evolve-templates.t
branchstable
changeset 3088 b3efdd407f30
parent 3083 e91ca8b5ecf7
child 3098 87b83a3e0392
child 3115 663dbef40f97
equal deleted inserted replaced
3077:b76fe277cef2 3088:b3efdd407f30
    17   >     {if(precursors, "\n  semi-colon: {join(precursors, "; ")}")}\
    17   >     {if(precursors, "\n  semi-colon: {join(precursors, "; ")}")}\
    18   >     {if(successors, "\n  Successors: {successors}")}\
    18   >     {if(successors, "\n  Successors: {successors}")}\
    19   >     {if(successors, "\n  semi-colon: {join(successors, "; ")}")}\
    19   >     {if(successors, "\n  semi-colon: {join(successors, "; ")}")}\
    20   >     {if(obsfate, "\n  Fate: {join(obsfate, "\n  Fate: ")}\n")}\n'
    20   >     {if(obsfate, "\n  Fate: {join(obsfate, "\n  Fate: ")}\n")}\n'
    21   > fatelog = log -G -T '{node|short}\n{if(obsfate, "  Obsfate: {join(obsfate, "; ")}\n\n")}'
    21   > fatelog = log -G -T '{node|short}\n{if(obsfate, "  Obsfate: {join(obsfate, "; ")}\n\n")}'
    22   > fatelogjson = log -G -T '{node|short} {obsfate|json}\n'
    22   > fatelogjson = log -G -T '{node|short} {obsfatedata|json}\n'
    23   > EOF
    23   > EOF
    24 
    24 
    25 Test templates on amended commit
    25 Test templates on amended commit
    26 ================================
    26 ================================
    27 
    27 
    34   $ mkcommit A0
    34   $ mkcommit A0
    35   $ echo 42 >> A0
    35   $ echo 42 >> A0
    36   $ HGUSER=test hg amend -m "A1" --config devel.default-date="1234567890 0"
    36   $ HGUSER=test hg amend -m "A1" --config devel.default-date="1234567890 0"
    37   $ HGUSER=test2 hg amend -m "A2" --config devel.default-date="987654321 0"
    37   $ HGUSER=test2 hg amend -m "A2" --config devel.default-date="987654321 0"
    38   $ hg log --hidden -G
    38   $ hg log --hidden -G
    39   @  changeset:   4:d004c8f274b9
    39   @  changeset:   3:d004c8f274b9
    40   |  tag:         tip
    40   |  tag:         tip
    41   |  parent:      0:ea207398892e
    41   |  parent:      0:ea207398892e
    42   |  user:        test
    42   |  user:        test
    43   |  date:        Thu Jan 01 00:00:00 1970 +0000
    43   |  date:        Thu Jan 01 00:00:00 1970 +0000
    44   |  summary:     A2
    44   |  summary:     A2
    45   |
    45   |
    46   | x  changeset:   3:a468dc9b3633
    46   | x  changeset:   2:a468dc9b3633
    47   |/   parent:      0:ea207398892e
    47   |/   parent:      0:ea207398892e
    48   |    user:        test
    48   |    user:        test
    49   |    date:        Thu Jan 01 00:00:00 1970 +0000
    49   |    date:        Thu Jan 01 00:00:00 1970 +0000
    50   |    obsolete:    reworded by test2 as d004c8f274b9
    50   |    obsolete:    reworded as 3:d004c8f274b9 by test2
    51   |    summary:     A1
    51   |    summary:     A1
    52   |
    52   |
    53   | x  changeset:   2:f137d23bb3e1
       
    54   | |  user:        test
       
    55   | |  date:        Thu Jan 01 00:00:00 1970 +0000
       
    56   | |  obsolete:    pruned
       
    57   | |  summary:     temporary amend commit for 471f378eab4c
       
    58   | |
       
    59   | x  changeset:   1:471f378eab4c
    53   | x  changeset:   1:471f378eab4c
    60   |/   user:        test
    54   |/   user:        test
    61   |    date:        Thu Jan 01 00:00:00 1970 +0000
    55   |    date:        Thu Jan 01 00:00:00 1970 +0000
    62   |    obsolete:    rewritten as a468dc9b3633
    56   |    obsolete:    rewritten as 2:a468dc9b3633
    63   |    summary:     A0
    57   |    summary:     A0
    64   |
    58   |
    65   o  changeset:   0:ea207398892e
    59   o  changeset:   0:ea207398892e
    66      user:        test
    60      user:        test
    67      date:        Thu Jan 01 00:00:00 1970 +0000
    61      date:        Thu Jan 01 00:00:00 1970 +0000
    74   working directory parent is obsolete! (471f378eab4c)
    68   working directory parent is obsolete! (471f378eab4c)
    75   (use 'hg evolve' to update to its successor: d004c8f274b9)
    69   (use 'hg evolve' to update to its successor: d004c8f274b9)
    76 
    70 
    77 Precursors template should show current revision as it is the working copy
    71 Precursors template should show current revision as it is the working copy
    78   $ hg olog tip
    72   $ hg olog tip
    79   o  d004c8f274b9 (4) A2
    73   o  d004c8f274b9 (3) A2
    80   |
    74   |
    81   x  a468dc9b3633 (3) A1
    75   x  a468dc9b3633 (2) A1
    82   |    rewritten(description) as d004c8f274b9 by test2 (Thu Apr 19 04:25:21 2001 +0000)
    76   |    rewritten(description) as d004c8f274b9 by test2 (Thu Apr 19 04:25:21 2001 +0000)
    83   |
    77   |
    84   @  471f378eab4c (1) A0
    78   @  471f378eab4c (1) A0
    85        rewritten(description, content) as a468dc9b3633 by test (Fri Feb 13 23:31:30 2009 +0000)
    79        rewritten(description, content) as a468dc9b3633 by test (Fri Feb 13 23:31:30 2009 +0000)
    86   
    80   
    87   $ hg tlog
    81   $ hg tlog
    88   o  d004c8f274b9
    82   o  d004c8f274b9
    89   |    Precursors: 471f378eab4c
    83   |    Precursors: 1:471f378eab4c
    90   |    semi-colon: 471f378eab4c
    84   |    semi-colon: 1:471f378eab4c
    91   | @  471f378eab4c
    85   | @  471f378eab4c
    92   |/     Successors: [d004c8f274b9]
    86   |/     Successors: 3:d004c8f274b9
    93   |      semi-colon: [d004c8f274b9]
    87   |      semi-colon: 3:d004c8f274b9
    94   |      Fate: rewritten as d004c8f274b9 by test, test2
    88   |      Fate: rewritten as 3:d004c8f274b9 by test, test2
    95   |
    89   |
    96   o  ea207398892e
    90   o  ea207398892e
    97   
    91   
    98 
    92 
    99   $ hg log -G
    93   $ hg log -G
   100   o  changeset:   4:d004c8f274b9
    94   o  changeset:   3:d004c8f274b9
   101   |  tag:         tip
    95   |  tag:         tip
   102   |  parent:      0:ea207398892e
    96   |  parent:      0:ea207398892e
   103   |  user:        test
    97   |  user:        test
   104   |  date:        Thu Jan 01 00:00:00 1970 +0000
    98   |  date:        Thu Jan 01 00:00:00 1970 +0000
   105   |  summary:     A2
    99   |  summary:     A2
   106   |
   100   |
   107   | @  changeset:   1:471f378eab4c
   101   | @  changeset:   1:471f378eab4c
   108   |/   user:        test
   102   |/   user:        test
   109   |    date:        Thu Jan 01 00:00:00 1970 +0000
   103   |    date:        Thu Jan 01 00:00:00 1970 +0000
   110   |    obsolete:    rewritten by test, test2 as d004c8f274b9
   104   |    obsolete:    rewritten as 3:d004c8f274b9 by test, test2
   111   |    summary:     A0
   105   |    summary:     A0
   112   |
   106   |
   113   o  changeset:   0:ea207398892e
   107   o  changeset:   0:ea207398892e
   114      user:        test
   108      user:        test
   115      date:        Thu Jan 01 00:00:00 1970 +0000
   109      date:        Thu Jan 01 00:00:00 1970 +0000
   118 
   112 
   119   $ hg fatelog -q
   113   $ hg fatelog -q
   120   o  d004c8f274b9
   114   o  d004c8f274b9
   121   |
   115   |
   122   | @  471f378eab4c
   116   | @  471f378eab4c
   123   |/     Obsfate: rewritten as d004c8f274b9
   117   |/     Obsfate: rewritten as 3:d004c8f274b9
   124   |
   118   |
   125   o  ea207398892e
   119   o  ea207398892e
   126   
   120   
   127 
   121 
   128   $ hg fatelog
   122   $ hg fatelog
   129   o  d004c8f274b9
   123   o  d004c8f274b9
   130   |
   124   |
   131   | @  471f378eab4c
   125   | @  471f378eab4c
   132   |/     Obsfate: rewritten as d004c8f274b9 by test, test2
   126   |/     Obsfate: rewritten as 3:d004c8f274b9 by test, test2
   133   |
   127   |
   134   o  ea207398892e
   128   o  ea207398892e
   135   
   129   
   136   $ hg fatelog -v
   130   $ hg fatelog -v
   137   o  d004c8f274b9
   131   o  d004c8f274b9
   138   |
   132   |
   139   | @  471f378eab4c
   133   | @  471f378eab4c
   140   |/     Obsfate: rewritten as d004c8f274b9 by test, test2 (between 2001-04-19 04:25 +0000 and 2009-02-13 23:31 +0000)
   134   |/     Obsfate: rewritten as 3:d004c8f274b9 by test, test2 (between 2001-04-19 04:25 +0000 and 2009-02-13 23:31 +0000)
   141   |
   135   |
   142   o  ea207398892e
   136   o  ea207398892e
   143   
   137   
   144 
   138 
   145 (check json)
   139 (check json)
   166   (use 'hg evolve' to update to its successor: d004c8f274b9)
   160   (use 'hg evolve' to update to its successor: d004c8f274b9)
   167 
   161 
   168 Precursors template should show current revision as it is the working copy
   162 Precursors template should show current revision as it is the working copy
   169   $ hg tlog
   163   $ hg tlog
   170   o  d004c8f274b9
   164   o  d004c8f274b9
   171   |    Precursors: a468dc9b3633
   165   |    Precursors: 2:a468dc9b3633
   172   |    semi-colon: a468dc9b3633
   166   |    semi-colon: 2:a468dc9b3633
   173   | @  a468dc9b3633
   167   | @  a468dc9b3633
   174   |/     Successors: [d004c8f274b9]
   168   |/     Successors: 3:d004c8f274b9
   175   |      semi-colon: [d004c8f274b9]
   169   |      semi-colon: 3:d004c8f274b9
   176   |      Fate: reworded as d004c8f274b9 by test2
   170   |      Fate: reworded as 3:d004c8f274b9 by test2
   177   |
   171   |
   178   o  ea207398892e
   172   o  ea207398892e
   179   
   173   
   180 Precursors template should show the precursor as we force its display with
   174 Precursors template should show the precursor as we force its display with
   181 --hidden  
   175 --hidden  
   182   $ hg tlog --hidden
   176   $ hg tlog --hidden
   183   o  d004c8f274b9
   177   o  d004c8f274b9
   184   |    Precursors: a468dc9b3633
   178   |    Precursors: 2:a468dc9b3633
   185   |    semi-colon: a468dc9b3633
   179   |    semi-colon: 2:a468dc9b3633
   186   | @  a468dc9b3633
   180   | @  a468dc9b3633
   187   |/     Precursors: 471f378eab4c
   181   |/     Precursors: 1:471f378eab4c
   188   |      semi-colon: 471f378eab4c
   182   |      semi-colon: 1:471f378eab4c
   189   |      Successors: [d004c8f274b9]
   183   |      Successors: 3:d004c8f274b9
   190   |      semi-colon: [d004c8f274b9]
   184   |      semi-colon: 3:d004c8f274b9
   191   |      Fate: reworded as d004c8f274b9 by test2
   185   |      Fate: reworded as 3:d004c8f274b9 by test2
   192   |
   186   |
   193   | x  f137d23bb3e1
   187   | x  471f378eab4c
   194   | |    Fate: pruned
   188   |/     Successors: 2:a468dc9b3633
   195   | |
   189   |      semi-colon: 2:a468dc9b3633
   196   | x  471f378eab4c
   190   |      Fate: rewritten as 2:a468dc9b3633
   197   |/     Successors: [a468dc9b3633]
       
   198   |      semi-colon: [a468dc9b3633]
       
   199   |      Fate: rewritten as a468dc9b3633
       
   200   |
   191   |
   201   o  ea207398892e
   192   o  ea207398892e
   202   
   193   
   203   $ hg fatelog -v
   194   $ hg fatelog -v
   204   o  d004c8f274b9
   195   o  d004c8f274b9
   205   |
   196   |
   206   | @  a468dc9b3633
   197   | @  a468dc9b3633
   207   |/     Obsfate: reworded as d004c8f274b9 by test2 (at 2001-04-19 04:25 +0000)
   198   |/     Obsfate: reworded as 3:d004c8f274b9 by test2 (at 2001-04-19 04:25 +0000)
   208   |
   199   |
   209   o  ea207398892e
   200   o  ea207398892e
   210   
   201   
   211   $ hg up 'desc(A2)'
   202   $ hg up 'desc(A2)'
   212   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   203   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   215   |
   206   |
   216   o  ea207398892e
   207   o  ea207398892e
   217   
   208   
   218   $ hg tlog --hidden
   209   $ hg tlog --hidden
   219   @  d004c8f274b9
   210   @  d004c8f274b9
   220   |    Precursors: a468dc9b3633
   211   |    Precursors: 2:a468dc9b3633
   221   |    semi-colon: a468dc9b3633
   212   |    semi-colon: 2:a468dc9b3633
   222   | x  a468dc9b3633
   213   | x  a468dc9b3633
   223   |/     Precursors: 471f378eab4c
   214   |/     Precursors: 1:471f378eab4c
   224   |      semi-colon: 471f378eab4c
   215   |      semi-colon: 1:471f378eab4c
   225   |      Successors: [d004c8f274b9]
   216   |      Successors: 3:d004c8f274b9
   226   |      semi-colon: [d004c8f274b9]
   217   |      semi-colon: 3:d004c8f274b9
   227   |      Fate: reworded as d004c8f274b9 by test2
   218   |      Fate: reworded as 3:d004c8f274b9 by test2
   228   |
   219   |
   229   | x  f137d23bb3e1
   220   | x  471f378eab4c
   230   | |    Fate: pruned
   221   |/     Successors: 2:a468dc9b3633
   231   | |
   222   |      semi-colon: 2:a468dc9b3633
   232   | x  471f378eab4c
   223   |      Fate: rewritten as 2:a468dc9b3633
   233   |/     Successors: [a468dc9b3633]
       
   234   |      semi-colon: [a468dc9b3633]
       
   235   |      Fate: rewritten as a468dc9b3633
       
   236   |
   224   |
   237   o  ea207398892e
   225   o  ea207398892e
   238   
   226   
   239   $ hg fatelog -v
   227   $ hg fatelog -v
   240   @  d004c8f274b9
   228   @  d004c8f274b9
   244 
   232 
   245   $ hg fatelog -v --hidden
   233   $ hg fatelog -v --hidden
   246   @  d004c8f274b9
   234   @  d004c8f274b9
   247   |
   235   |
   248   | x  a468dc9b3633
   236   | x  a468dc9b3633
   249   |/     Obsfate: reworded as d004c8f274b9 by test2 (at 2001-04-19 04:25 +0000)
   237   |/     Obsfate: reworded as 3:d004c8f274b9 by test2 (at 2001-04-19 04:25 +0000)
   250   |
   238   |
   251   | x  f137d23bb3e1
   239   | x  471f378eab4c
   252   | |    Obsfate: pruned by test (at 2009-02-13 23:31 +0000)
   240   |/     Obsfate: rewritten as 2:a468dc9b3633 by test (at 2009-02-13 23:31 +0000)
   253   | |
       
   254   | x  471f378eab4c
       
   255   |/     Obsfate: rewritten as a468dc9b3633 by test (at 2009-02-13 23:31 +0000)
       
   256   |
   241   |
   257   o  ea207398892e
   242   o  ea207398892e
   258   
   243   
   259 
   244 
   260   $ hg fatelogjson --hidden
   245   $ hg fatelogjson --hidden
   261   @  d004c8f274b9 ""
   246   @  d004c8f274b9 []
   262   |
   247   |
   263   | x  a468dc9b3633 [{"markers": [["a468dc9b36338b14fdb7825f55ce3df4e71517ad", ["d004c8f274b9ec480a47a93c10dac5eee63adb78"], 0, [["ef1", "1"], ["user", "test2"]], [987654321.0, 0], null]], "max_date": [987654321.0, 0], "min_date": [987654321.0, 0], "successors": ["d004c8f274b9ec480a47a93c10dac5eee63adb78"], "users": ["test2"], "verb": "reworded"}]
   248   | x  a468dc9b3633 [{"markers": [["a468dc9b36338b14fdb7825f55ce3df4e71517ad", ["d004c8f274b9ec480a47a93c10dac5eee63adb78"], 0, [["ef1", "1"], ["operation", "amend"], ["user", "test2"]], [987654321.0, 0], null]], "max_date": [987654321.0, 0], "min_date": [987654321.0, 0], "successors": ["d004c8f274b9ec480a47a93c10dac5eee63adb78"], "users": ["test2"], "verb": "reworded"}]
   264   |/
   249   |/
   265   | x  f137d23bb3e1 [{"markers": [["f137d23bb3e11dc1daeb6264fac9cb2433782e15", [], 0, [["ef1", "0"], ["user", "test"]], [1234567890.0, 0], ["471f378eab4c5e25f6c77f785b27c936efb22874"]]], "max_date": [1234567890.0, 0], "min_date": [1234567890.0, 0], "successors": [], "users": ["test"], "verb": "pruned"}]
   250   | x  471f378eab4c [{"markers": [["471f378eab4c5e25f6c77f785b27c936efb22874", ["a468dc9b36338b14fdb7825f55ce3df4e71517ad"], 0, [["ef1", "9"], ["operation", "amend"], ["user", "test"]], [1234567890.0, 0], null]], "max_date": [1234567890.0, 0], "min_date": [1234567890.0, 0], "successors": ["a468dc9b36338b14fdb7825f55ce3df4e71517ad"], "users": ["test"], "verb": "rewritten"}]
   266   | |
   251   |/
   267   | x  471f378eab4c [{"markers": [["471f378eab4c5e25f6c77f785b27c936efb22874", ["a468dc9b36338b14fdb7825f55ce3df4e71517ad"], 0, [["ef1", "9"], ["user", "test"]], [1234567890.0, 0], null]], "max_date": [1234567890.0, 0], "min_date": [1234567890.0, 0], "successors": ["a468dc9b36338b14fdb7825f55ce3df4e71517ad"], "users": ["test"], "verb": "rewritten"}]
   252   o  ea207398892e []
   268   |/
       
   269   o  ea207398892e ""
       
   270   
   253   
   271 
   254 
   272 Test templates with splitted commit
   255 Test templates with splitted commit
   273 ===================================
   256 ===================================
   274 
   257 
   341   |  summary:     A0
   324   |  summary:     A0
   342   |
   325   |
   343   | x  changeset:   1:471597cad322
   326   | x  changeset:   1:471597cad322
   344   |/   user:        test
   327   |/   user:        test
   345   |    date:        Thu Jan 01 00:00:00 1970 +0000
   328   |    date:        Thu Jan 01 00:00:00 1970 +0000
   346   |    obsolete:    split as 337fec4d2edc, f257fde29c7a
   329   |    obsolete:    split as 2:337fec4d2edc, 3:f257fde29c7a
   347   |    summary:     A0
   330   |    summary:     A0
   348   |
   331   |
   349   o  changeset:   0:ea207398892e
   332   o  changeset:   0:ea207398892e
   350      user:        test
   333      user:        test
   351      date:        Thu Jan 01 00:00:00 1970 +0000
   334      date:        Thu Jan 01 00:00:00 1970 +0000
   361   (use 'hg evolve' to update to its tipmost successor: 337fec4d2edc, f257fde29c7a)
   344   (use 'hg evolve' to update to its tipmost successor: 337fec4d2edc, f257fde29c7a)
   362 
   345 
   363 Precursors template should show current revision as it is the working copy
   346 Precursors template should show current revision as it is the working copy
   364   $ hg tlog
   347   $ hg tlog
   365   o  f257fde29c7a
   348   o  f257fde29c7a
   366   |    Precursors: 471597cad322
   349   |    Precursors: 1:471597cad322
   367   |    semi-colon: 471597cad322
   350   |    semi-colon: 1:471597cad322
   368   o  337fec4d2edc
   351   o  337fec4d2edc
   369   |    Precursors: 471597cad322
   352   |    Precursors: 1:471597cad322
   370   |    semi-colon: 471597cad322
   353   |    semi-colon: 1:471597cad322
   371   | @  471597cad322
   354   | @  471597cad322
   372   |/     Successors: [337fec4d2edc, f257fde29c7a]
   355   |/     Successors: 2:337fec4d2edc 3:f257fde29c7a
   373   |      semi-colon: [337fec4d2edc, f257fde29c7a]
   356   |      semi-colon: 2:337fec4d2edc 3:f257fde29c7a
   374   |      Fate: split as 337fec4d2edc, f257fde29c7a
   357   |      Fate: split as 2:337fec4d2edc, 3:f257fde29c7a
   375   |
   358   |
   376   o  ea207398892e
   359   o  ea207398892e
   377   
   360   
   378   $ hg fatelog
   361   $ hg fatelog
   379   o  f257fde29c7a
   362   o  f257fde29c7a
   380   |
   363   |
   381   o  337fec4d2edc
   364   o  337fec4d2edc
   382   |
   365   |
   383   | @  471597cad322
   366   | @  471597cad322
   384   |/     Obsfate: split as 337fec4d2edc, f257fde29c7a
   367   |/     Obsfate: split as 2:337fec4d2edc, 3:f257fde29c7a
   385   |
   368   |
   386   o  ea207398892e
   369   o  ea207398892e
   387   
   370   
   388 
   371 
   389   $ hg up f257fde29c7a
   372   $ hg up f257fde29c7a
   400   
   383   
   401 Precursors template should show the precursor as we force its display with
   384 Precursors template should show the precursor as we force its display with
   402 --hidden
   385 --hidden
   403   $ hg tlog --hidden
   386   $ hg tlog --hidden
   404   @  f257fde29c7a
   387   @  f257fde29c7a
   405   |    Precursors: 471597cad322
   388   |    Precursors: 1:471597cad322
   406   |    semi-colon: 471597cad322
   389   |    semi-colon: 1:471597cad322
   407   o  337fec4d2edc
   390   o  337fec4d2edc
   408   |    Precursors: 471597cad322
   391   |    Precursors: 1:471597cad322
   409   |    semi-colon: 471597cad322
   392   |    semi-colon: 1:471597cad322
   410   | x  471597cad322
   393   | x  471597cad322
   411   |/     Successors: [337fec4d2edc, f257fde29c7a]
   394   |/     Successors: 2:337fec4d2edc 3:f257fde29c7a
   412   |      semi-colon: [337fec4d2edc, f257fde29c7a]
   395   |      semi-colon: 2:337fec4d2edc 3:f257fde29c7a
   413   |      Fate: split as 337fec4d2edc, f257fde29c7a
   396   |      Fate: split as 2:337fec4d2edc, 3:f257fde29c7a
   414   |
   397   |
   415   o  ea207398892e
   398   o  ea207398892e
   416   
   399   
   417   $ hg fatelog --hidden
   400   $ hg fatelog --hidden
   418   @  f257fde29c7a
   401   @  f257fde29c7a
   419   |
   402   |
   420   o  337fec4d2edc
   403   o  337fec4d2edc
   421   |
   404   |
   422   | x  471597cad322
   405   | x  471597cad322
   423   |/     Obsfate: split as 337fec4d2edc, f257fde29c7a
   406   |/     Obsfate: split as 2:337fec4d2edc, 3:f257fde29c7a
   424   |
   407   |
   425   o  ea207398892e
   408   o  ea207398892e
   426   
   409   
   427 
   410 
   428   $ hg fatelogjson --hidden
   411   $ hg fatelogjson --hidden
   429   @  f257fde29c7a ""
   412   @  f257fde29c7a []
   430   |
   413   |
   431   o  337fec4d2edc ""
   414   o  337fec4d2edc []
   432   |
   415   |
   433   | x  471597cad322 [{"markers": [["471597cad322d1f659bb169751be9133dad92ef3", ["337fec4d2edcf0e7a467e35f818234bc620068b5", "f257fde29c7a847c9b607f6e958656d0df0fb15c"], 0, [["ef1", "12"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["337fec4d2edcf0e7a467e35f818234bc620068b5", "f257fde29c7a847c9b607f6e958656d0df0fb15c"], "users": ["test"], "verb": "split"}]
   416   | x  471597cad322 [{"markers": [["471597cad322d1f659bb169751be9133dad92ef3", ["337fec4d2edcf0e7a467e35f818234bc620068b5", "f257fde29c7a847c9b607f6e958656d0df0fb15c"], 0, [["ef1", "12"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["337fec4d2edcf0e7a467e35f818234bc620068b5", "f257fde29c7a847c9b607f6e958656d0df0fb15c"], "users": ["test"], "verb": "split"}]
   434   |/
   417   |/
   435   o  ea207398892e ""
   418   o  ea207398892e []
   436   
   419   
   437 
   420 
   438 Test templates with folded commit
   421 Test templates with folded commit
   439 ==============================
   422 ==============================
   440 
   423 
   475   |  summary:     C0
   458   |  summary:     C0
   476   |
   459   |
   477   | x  changeset:   2:0dec01379d3b
   460   | x  changeset:   2:0dec01379d3b
   478   | |  user:        test
   461   | |  user:        test
   479   | |  date:        Thu Jan 01 00:00:00 1970 +0000
   462   | |  date:        Thu Jan 01 00:00:00 1970 +0000
   480   | |  obsolete:    rewritten as eb5a0daa2192
   463   | |  obsolete:    rewritten as 3:eb5a0daa2192
   481   | |  summary:     B0
   464   | |  summary:     B0
   482   | |
   465   | |
   483   | x  changeset:   1:471f378eab4c
   466   | x  changeset:   1:471f378eab4c
   484   |/   user:        test
   467   |/   user:        test
   485   |    date:        Thu Jan 01 00:00:00 1970 +0000
   468   |    date:        Thu Jan 01 00:00:00 1970 +0000
   486   |    obsolete:    rewritten as eb5a0daa2192
   469   |    obsolete:    rewritten as 3:eb5a0daa2192
   487   |    summary:     A0
   470   |    summary:     A0
   488   |
   471   |
   489   o  changeset:   0:ea207398892e
   472   o  changeset:   0:ea207398892e
   490      user:        test
   473      user:        test
   491      date:        Thu Jan 01 00:00:00 1970 +0000
   474      date:        Thu Jan 01 00:00:00 1970 +0000
   500   (use 'hg evolve' to update to its successor: eb5a0daa2192)
   483   (use 'hg evolve' to update to its successor: eb5a0daa2192)
   501 
   484 
   502 Precursors template should show current revision as it is the working copy
   485 Precursors template should show current revision as it is the working copy
   503   $ hg tlog
   486   $ hg tlog
   504   o  eb5a0daa2192
   487   o  eb5a0daa2192
   505   |    Precursors: 471f378eab4c
   488   |    Precursors: 1:471f378eab4c
   506   |    semi-colon: 471f378eab4c
   489   |    semi-colon: 1:471f378eab4c
   507   | @  471f378eab4c
   490   | @  471f378eab4c
   508   |/     Successors: [eb5a0daa2192]
   491   |/     Successors: 3:eb5a0daa2192
   509   |      semi-colon: [eb5a0daa2192]
   492   |      semi-colon: 3:eb5a0daa2192
   510   |      Fate: rewritten as eb5a0daa2192
   493   |      Fate: rewritten as 3:eb5a0daa2192
   511   |
   494   |
   512   o  ea207398892e
   495   o  ea207398892e
   513   
   496   
   514   $ hg fatelog
   497   $ hg fatelog
   515   o  eb5a0daa2192
   498   o  eb5a0daa2192
   516   |
   499   |
   517   | @  471f378eab4c
   500   | @  471f378eab4c
   518   |/     Obsfate: rewritten as eb5a0daa2192
   501   |/     Obsfate: rewritten as 3:eb5a0daa2192
   519   |
   502   |
   520   o  ea207398892e
   503   o  ea207398892e
   521   
   504   
   522   $ hg up 'desc(B0)' --hidden
   505   $ hg up 'desc(B0)' --hidden
   523   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   506   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   526 
   509 
   527 Precursors template should show both precursors as they should be both
   510 Precursors template should show both precursors as they should be both
   528 displayed
   511 displayed
   529   $ hg tlog
   512   $ hg tlog
   530   o  eb5a0daa2192
   513   o  eb5a0daa2192
   531   |    Precursors: 0dec01379d3b 471f378eab4c
   514   |    Precursors: 2:0dec01379d3b 1:471f378eab4c
   532   |    semi-colon: 0dec01379d3b; 471f378eab4c
   515   |    semi-colon: 2:0dec01379d3b; 1:471f378eab4c
   533   | @  0dec01379d3b
   516   | @  0dec01379d3b
   534   | |    Successors: [eb5a0daa2192]
   517   | |    Successors: 3:eb5a0daa2192
   535   | |    semi-colon: [eb5a0daa2192]
   518   | |    semi-colon: 3:eb5a0daa2192
   536   | |    Fate: rewritten as eb5a0daa2192
   519   | |    Fate: rewritten as 3:eb5a0daa2192
   537   | |
   520   | |
   538   | x  471f378eab4c
   521   | x  471f378eab4c
   539   |/     Successors: [eb5a0daa2192]
   522   |/     Successors: 3:eb5a0daa2192
   540   |      semi-colon: [eb5a0daa2192]
   523   |      semi-colon: 3:eb5a0daa2192
   541   |      Fate: rewritten as eb5a0daa2192
   524   |      Fate: rewritten as 3:eb5a0daa2192
   542   |
   525   |
   543   o  ea207398892e
   526   o  ea207398892e
   544   
   527   
   545   $ hg fatelog
   528   $ hg fatelog
   546   o  eb5a0daa2192
   529   o  eb5a0daa2192
   547   |
   530   |
   548   | @  0dec01379d3b
   531   | @  0dec01379d3b
   549   | |    Obsfate: rewritten as eb5a0daa2192
   532   | |    Obsfate: rewritten as 3:eb5a0daa2192
   550   | |
   533   | |
   551   | x  471f378eab4c
   534   | x  471f378eab4c
   552   |/     Obsfate: rewritten as eb5a0daa2192
   535   |/     Obsfate: rewritten as 3:eb5a0daa2192
   553   |
   536   |
   554   o  ea207398892e
   537   o  ea207398892e
   555   
   538   
   556 
   539 
   557   $ hg up 'desc(C0)'
   540   $ hg up 'desc(C0)'
   566   
   549   
   567 Precursors template should show both precursors as we force its display with
   550 Precursors template should show both precursors as we force its display with
   568 --hidden
   551 --hidden
   569   $ hg tlog --hidden
   552   $ hg tlog --hidden
   570   @  eb5a0daa2192
   553   @  eb5a0daa2192
   571   |    Precursors: 0dec01379d3b 471f378eab4c
   554   |    Precursors: 2:0dec01379d3b 1:471f378eab4c
   572   |    semi-colon: 0dec01379d3b; 471f378eab4c
   555   |    semi-colon: 2:0dec01379d3b; 1:471f378eab4c
   573   | x  0dec01379d3b
   556   | x  0dec01379d3b
   574   | |    Successors: [eb5a0daa2192]
   557   | |    Successors: 3:eb5a0daa2192
   575   | |    semi-colon: [eb5a0daa2192]
   558   | |    semi-colon: 3:eb5a0daa2192
   576   | |    Fate: rewritten as eb5a0daa2192
   559   | |    Fate: rewritten as 3:eb5a0daa2192
   577   | |
   560   | |
   578   | x  471f378eab4c
   561   | x  471f378eab4c
   579   |/     Successors: [eb5a0daa2192]
   562   |/     Successors: 3:eb5a0daa2192
   580   |      semi-colon: [eb5a0daa2192]
   563   |      semi-colon: 3:eb5a0daa2192
   581   |      Fate: rewritten as eb5a0daa2192
   564   |      Fate: rewritten as 3:eb5a0daa2192
   582   |
   565   |
   583   o  ea207398892e
   566   o  ea207398892e
   584   
   567   
   585   $ hg fatelog --hidden
   568   $ hg fatelog --hidden
   586   @  eb5a0daa2192
   569   @  eb5a0daa2192
   587   |
   570   |
   588   | x  0dec01379d3b
   571   | x  0dec01379d3b
   589   | |    Obsfate: rewritten as eb5a0daa2192
   572   | |    Obsfate: rewritten as 3:eb5a0daa2192
   590   | |
   573   | |
   591   | x  471f378eab4c
   574   | x  471f378eab4c
   592   |/     Obsfate: rewritten as eb5a0daa2192
   575   |/     Obsfate: rewritten as 3:eb5a0daa2192
   593   |
   576   |
   594   o  ea207398892e
   577   o  ea207398892e
   595   
   578   
   596 
   579 
   597   $ hg fatelogjson --hidden
   580   $ hg fatelogjson --hidden
   598   @  eb5a0daa2192 ""
   581   @  eb5a0daa2192 []
   599   |
   582   |
   600   | x  0dec01379d3b [{"markers": [["0dec01379d3be6318c470ead31b1fe7ae7cb53d5", ["eb5a0daa21923bbf8caeb2c42085b9e463861fd0"], 0, [["ef1", "13"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["eb5a0daa21923bbf8caeb2c42085b9e463861fd0"], "users": ["test"], "verb": "rewritten"}]
   583   | x  0dec01379d3b [{"markers": [["0dec01379d3be6318c470ead31b1fe7ae7cb53d5", ["eb5a0daa21923bbf8caeb2c42085b9e463861fd0"], 0, [["ef1", "13"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["eb5a0daa21923bbf8caeb2c42085b9e463861fd0"], "users": ["test"], "verb": "rewritten"}]
   601   | |
   584   | |
   602   | x  471f378eab4c [{"markers": [["471f378eab4c5e25f6c77f785b27c936efb22874", ["eb5a0daa21923bbf8caeb2c42085b9e463861fd0"], 0, [["ef1", "9"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["eb5a0daa21923bbf8caeb2c42085b9e463861fd0"], "users": ["test"], "verb": "rewritten"}]
   585   | x  471f378eab4c [{"markers": [["471f378eab4c5e25f6c77f785b27c936efb22874", ["eb5a0daa21923bbf8caeb2c42085b9e463861fd0"], 0, [["ef1", "9"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["eb5a0daa21923bbf8caeb2c42085b9e463861fd0"], "users": ["test"], "verb": "rewritten"}]
   603   |/
   586   |/
   604   o  ea207398892e ""
   587   o  ea207398892e []
   605   
   588   
   606 
   589 
   607 Test templates with divergence
   590 Test templates with divergence
   608 ==============================
   591 ==============================
   609 
   592 
   624   |  summary:     A1
   607   |  summary:     A1
   625   |
   608   |
   626   | x  changeset:   1:471f378eab4c
   609   | x  changeset:   1:471f378eab4c
   627   |/   user:        test
   610   |/   user:        test
   628   |    date:        Thu Jan 01 00:00:00 1970 +0000
   611   |    date:        Thu Jan 01 00:00:00 1970 +0000
   629   |    obsolete:    reworded as fdf9bde5129a
   612   |    obsolete:    reworded as 2:fdf9bde5129a
   630   |    summary:     A0
   613   |    summary:     A0
   631   |
   614   |
   632   o  changeset:   0:ea207398892e
   615   o  changeset:   0:ea207398892e
   633      user:        test
   616      user:        test
   634      date:        Thu Jan 01 00:00:00 1970 +0000
   617      date:        Thu Jan 01 00:00:00 1970 +0000
   637   $ hg update --hidden 'desc(A0)'
   620   $ hg update --hidden 'desc(A0)'
   638   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   621   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   639   working directory parent is obsolete! (471f378eab4c)
   622   working directory parent is obsolete! (471f378eab4c)
   640   (use 'hg evolve' to update to its successor: fdf9bde5129a)
   623   (use 'hg evolve' to update to its successor: fdf9bde5129a)
   641   $ hg amend -m "A2"
   624   $ hg amend -m "A2"
   642   2 new divergent changesets
   625   2 new content-divergent changesets
   643   $ hg log --hidden -G
   626   $ hg log --hidden -G
   644   @  changeset:   3:65b757b745b9
   627   @  changeset:   3:65b757b745b9
   645   |  tag:         tip
   628   |  tag:         tip
   646   |  parent:      0:ea207398892e
   629   |  parent:      0:ea207398892e
   647   |  user:        test
   630   |  user:        test
   648   |  date:        Thu Jan 01 00:00:00 1970 +0000
   631   |  date:        Thu Jan 01 00:00:00 1970 +0000
   649   |  trouble:     divergent
   632   |  instability: content-divergent
   650   |  summary:     A2
   633   |  summary:     A2
   651   |
   634   |
   652   | o  changeset:   2:fdf9bde5129a
   635   | o  changeset:   2:fdf9bde5129a
   653   |/   parent:      0:ea207398892e
   636   |/   parent:      0:ea207398892e
   654   |    user:        test
   637   |    user:        test
   655   |    date:        Thu Jan 01 00:00:00 1970 +0000
   638   |    date:        Thu Jan 01 00:00:00 1970 +0000
   656   |    trouble:     divergent
   639   |    instability: content-divergent
   657   |    summary:     A1
   640   |    summary:     A1
   658   |
   641   |
   659   | x  changeset:   1:471f378eab4c
   642   | x  changeset:   1:471f378eab4c
   660   |/   user:        test
   643   |/   user:        test
   661   |    date:        Thu Jan 01 00:00:00 1970 +0000
   644   |    date:        Thu Jan 01 00:00:00 1970 +0000
   662   |    obsolete:    reworded as fdf9bde5129a
   645   |    obsolete:    reworded as 2:fdf9bde5129a
   663   |    obsolete:    reworded as 65b757b745b9
   646   |    obsolete:    reworded as 3:65b757b745b9
   664   |    summary:     A0
   647   |    summary:     A0
   665   |
   648   |
   666   o  changeset:   0:ea207398892e
   649   o  changeset:   0:ea207398892e
   667      user:        test
   650      user:        test
   668      date:        Thu Jan 01 00:00:00 1970 +0000
   651      date:        Thu Jan 01 00:00:00 1970 +0000
   679   (471f378eab4c has diverged, use 'hg evolve --list --contentdivergent' to resolve the issue)
   662   (471f378eab4c has diverged, use 'hg evolve --list --contentdivergent' to resolve the issue)
   680 
   663 
   681 Precursors template should show current revision as it is the working copy
   664 Precursors template should show current revision as it is the working copy
   682   $ hg tlog
   665   $ hg tlog
   683   o  019fadeab383
   666   o  019fadeab383
   684   |    Precursors: 471f378eab4c
   667   |    Precursors: 1:471f378eab4c
   685   |    semi-colon: 471f378eab4c
   668   |    semi-colon: 1:471f378eab4c
   686   | o  fdf9bde5129a
   669   | o  fdf9bde5129a
   687   |/     Precursors: 471f378eab4c
   670   |/     Precursors: 1:471f378eab4c
   688   |      semi-colon: 471f378eab4c
   671   |      semi-colon: 1:471f378eab4c
   689   | @  471f378eab4c
   672   | @  471f378eab4c
   690   |/     Successors: [fdf9bde5129a], [019fadeab383]
   673   |/     Successors: 2:fdf9bde5129a; 4:019fadeab383
   691   |      semi-colon: [fdf9bde5129a]; [019fadeab383]
   674   |      semi-colon: 2:fdf9bde5129a; 4:019fadeab383
   692   |      Fate: reworded as fdf9bde5129a
   675   |      Fate: reworded as 2:fdf9bde5129a
   693   |      Fate: reworded as 019fadeab383
   676   |      Fate: reworded as 4:019fadeab383
   694   |
   677   |
   695   o  ea207398892e
   678   o  ea207398892e
   696   
   679   
   697   $ hg fatelog
   680   $ hg fatelog
   698   o  019fadeab383
   681   o  019fadeab383
   699   |
   682   |
   700   | o  fdf9bde5129a
   683   | o  fdf9bde5129a
   701   |/
   684   |/
   702   | @  471f378eab4c
   685   | @  471f378eab4c
   703   |/     Obsfate: reworded as fdf9bde5129a; reworded as 019fadeab383
   686   |/     Obsfate: reworded as 2:fdf9bde5129a; reworded as 4:019fadeab383
   704   |
   687   |
   705   o  ea207398892e
   688   o  ea207398892e
   706   
   689   
   707 
   690 
   708   $ hg up 'desc(A1)'
   691   $ hg up 'desc(A1)'
   725   o  ea207398892e
   708   o  ea207398892e
   726   
   709   
   727 Precursors template should a precursor as we force its display with --hidden
   710 Precursors template should a precursor as we force its display with --hidden
   728   $ hg tlog --hidden
   711   $ hg tlog --hidden
   729   o  019fadeab383
   712   o  019fadeab383
   730   |    Precursors: 65b757b745b9
   713   |    Precursors: 3:65b757b745b9
   731   |    semi-colon: 65b757b745b9
   714   |    semi-colon: 3:65b757b745b9
   732   | x  65b757b745b9
   715   | x  65b757b745b9
   733   |/     Precursors: 471f378eab4c
   716   |/     Precursors: 1:471f378eab4c
   734   |      semi-colon: 471f378eab4c
   717   |      semi-colon: 1:471f378eab4c
   735   |      Successors: [019fadeab383]
   718   |      Successors: 4:019fadeab383
   736   |      semi-colon: [019fadeab383]
   719   |      semi-colon: 4:019fadeab383
   737   |      Fate: reworded as 019fadeab383
   720   |      Fate: reworded as 4:019fadeab383
   738   |
   721   |
   739   | @  fdf9bde5129a
   722   | @  fdf9bde5129a
   740   |/     Precursors: 471f378eab4c
   723   |/     Precursors: 1:471f378eab4c
   741   |      semi-colon: 471f378eab4c
   724   |      semi-colon: 1:471f378eab4c
   742   | x  471f378eab4c
   725   | x  471f378eab4c
   743   |/     Successors: [fdf9bde5129a], [65b757b745b9]
   726   |/     Successors: 2:fdf9bde5129a; 3:65b757b745b9
   744   |      semi-colon: [fdf9bde5129a]; [65b757b745b9]
   727   |      semi-colon: 2:fdf9bde5129a; 3:65b757b745b9
   745   |      Fate: reworded as fdf9bde5129a
   728   |      Fate: reworded as 2:fdf9bde5129a
   746   |      Fate: reworded as 65b757b745b9
   729   |      Fate: reworded as 3:65b757b745b9
   747   |
   730   |
   748   o  ea207398892e
   731   o  ea207398892e
   749   
   732   
   750   $ hg fatelog --hidden
   733   $ hg fatelog --hidden
   751   o  019fadeab383
   734   o  019fadeab383
   752   |
   735   |
   753   | x  65b757b745b9
   736   | x  65b757b745b9
   754   |/     Obsfate: reworded as 019fadeab383
   737   |/     Obsfate: reworded as 4:019fadeab383
   755   |
   738   |
   756   | @  fdf9bde5129a
   739   | @  fdf9bde5129a
   757   |/
   740   |/
   758   | x  471f378eab4c
   741   | x  471f378eab4c
   759   |/     Obsfate: reworded as fdf9bde5129a; reworded as 65b757b745b9
   742   |/     Obsfate: reworded as 2:fdf9bde5129a; reworded as 3:65b757b745b9
   760   |
   743   |
   761   o  ea207398892e
   744   o  ea207398892e
   762   
   745   
   763 
   746 
   764   $ hg fatelogjson --hidden
   747   $ hg fatelogjson --hidden
   765   o  019fadeab383 ""
   748   o  019fadeab383 []
   766   |
   749   |
   767   | x  65b757b745b9 [{"markers": [["65b757b745b935093c87a2bccd877521cccffcbd", ["019fadeab383f6699fa83ad7bdb4d82ed2c0e5ab"], 0, [["ef1", "1"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["019fadeab383f6699fa83ad7bdb4d82ed2c0e5ab"], "users": ["test"], "verb": "reworded"}]
   750   | x  65b757b745b9 [{"markers": [["65b757b745b935093c87a2bccd877521cccffcbd", ["019fadeab383f6699fa83ad7bdb4d82ed2c0e5ab"], 0, [["ef1", "1"], ["operation", "amend"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["019fadeab383f6699fa83ad7bdb4d82ed2c0e5ab"], "users": ["test"], "verb": "reworded"}]
   768   |/
   751   |/
   769   | @  fdf9bde5129a ""
   752   | @  fdf9bde5129a []
   770   |/
   753   |/
   771   | x  471f378eab4c [{"markers": [["471f378eab4c5e25f6c77f785b27c936efb22874", ["fdf9bde5129a28d4548fadd3f62b265cdd3b7a2e"], 0, [["ef1", "1"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["fdf9bde5129a28d4548fadd3f62b265cdd3b7a2e"], "users": ["test"], "verb": "reworded"}, {"markers": [["471f378eab4c5e25f6c77f785b27c936efb22874", ["65b757b745b935093c87a2bccd877521cccffcbd"], 0, [["ef1", "1"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["65b757b745b935093c87a2bccd877521cccffcbd"], "users": ["test"], "verb": "reworded"}]
   754   | x  471f378eab4c [{"markers": [["471f378eab4c5e25f6c77f785b27c936efb22874", ["fdf9bde5129a28d4548fadd3f62b265cdd3b7a2e"], 0, [["ef1", "1"], ["operation", "amend"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["fdf9bde5129a28d4548fadd3f62b265cdd3b7a2e"], "users": ["test"], "verb": "reworded"}, {"markers": [["471f378eab4c5e25f6c77f785b27c936efb22874", ["65b757b745b935093c87a2bccd877521cccffcbd"], 0, [["ef1", "1"], ["operation", "amend"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["65b757b745b935093c87a2bccd877521cccffcbd"], "users": ["test"], "verb": "reworded"}]
   772   |/
   755   |/
   773   o  ea207398892e ""
   756   o  ea207398892e []
   774   
   757   
   775 
   758 
   776 Test templates with amended + folded commit
   759 Test templates with amended + folded commit
   777 ===========================================
   760 ===========================================
   778 
   761 
   794   |  summary:     B1
   777   |  summary:     B1
   795   |
   778   |
   796   | x  changeset:   2:0dec01379d3b
   779   | x  changeset:   2:0dec01379d3b
   797   |/   user:        test
   780   |/   user:        test
   798   |    date:        Thu Jan 01 00:00:00 1970 +0000
   781   |    date:        Thu Jan 01 00:00:00 1970 +0000
   799   |    obsolete:    reworded as b7ea6d14e664
   782   |    obsolete:    reworded as 3:b7ea6d14e664
   800   |    summary:     B0
   783   |    summary:     B0
   801   |
   784   |
   802   o  changeset:   1:471f378eab4c
   785   o  changeset:   1:471f378eab4c
   803   |  user:        test
   786   |  user:        test
   804   |  date:        Thu Jan 01 00:00:00 1970 +0000
   787   |  date:        Thu Jan 01 00:00:00 1970 +0000
   822   |
   805   |
   823   | x  changeset:   3:b7ea6d14e664
   806   | x  changeset:   3:b7ea6d14e664
   824   | |  parent:      1:471f378eab4c
   807   | |  parent:      1:471f378eab4c
   825   | |  user:        test
   808   | |  user:        test
   826   | |  date:        Thu Jan 01 00:00:00 1970 +0000
   809   | |  date:        Thu Jan 01 00:00:00 1970 +0000
   827   | |  obsolete:    rewritten as eb5a0daa2192
   810   | |  obsolete:    rewritten as 4:eb5a0daa2192
   828   | |  summary:     B1
   811   | |  summary:     B1
   829   | |
   812   | |
   830   | | x  changeset:   2:0dec01379d3b
   813   | | x  changeset:   2:0dec01379d3b
   831   | |/   user:        test
   814   | |/   user:        test
   832   | |    date:        Thu Jan 01 00:00:00 1970 +0000
   815   | |    date:        Thu Jan 01 00:00:00 1970 +0000
   833   | |    obsolete:    reworded as b7ea6d14e664
   816   | |    obsolete:    reworded as 3:b7ea6d14e664
   834   | |    summary:     B0
   817   | |    summary:     B0
   835   | |
   818   | |
   836   | x  changeset:   1:471f378eab4c
   819   | x  changeset:   1:471f378eab4c
   837   |/   user:        test
   820   |/   user:        test
   838   |    date:        Thu Jan 01 00:00:00 1970 +0000
   821   |    date:        Thu Jan 01 00:00:00 1970 +0000
   839   |    obsolete:    rewritten as eb5a0daa2192
   822   |    obsolete:    rewritten as 4:eb5a0daa2192
   840   |    summary:     A0
   823   |    summary:     A0
   841   |
   824   |
   842   o  changeset:   0:ea207398892e
   825   o  changeset:   0:ea207398892e
   843      user:        test
   826      user:        test
   844      date:        Thu Jan 01 00:00:00 1970 +0000
   827      date:        Thu Jan 01 00:00:00 1970 +0000
   851   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
   834   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
   852   working directory parent is obsolete! (471f378eab4c)
   835   working directory parent is obsolete! (471f378eab4c)
   853   (use 'hg evolve' to update to its successor: eb5a0daa2192)
   836   (use 'hg evolve' to update to its successor: eb5a0daa2192)
   854   $ hg tlog
   837   $ hg tlog
   855   o  eb5a0daa2192
   838   o  eb5a0daa2192
   856   |    Precursors: 471f378eab4c
   839   |    Precursors: 1:471f378eab4c
   857   |    semi-colon: 471f378eab4c
   840   |    semi-colon: 1:471f378eab4c
   858   | @  471f378eab4c
   841   | @  471f378eab4c
   859   |/     Successors: [eb5a0daa2192]
   842   |/     Successors: 4:eb5a0daa2192
   860   |      semi-colon: [eb5a0daa2192]
   843   |      semi-colon: 4:eb5a0daa2192
   861   |      Fate: rewritten as eb5a0daa2192
   844   |      Fate: rewritten as 4:eb5a0daa2192
   862   |
   845   |
   863   o  ea207398892e
   846   o  ea207398892e
   864   
   847   
   865   $ hg fatelog
   848   $ hg fatelog
   866   o  eb5a0daa2192
   849   o  eb5a0daa2192
   867   |
   850   |
   868   | @  471f378eab4c
   851   | @  471f378eab4c
   869   |/     Obsfate: rewritten as eb5a0daa2192
   852   |/     Obsfate: rewritten as 4:eb5a0daa2192
   870   |
   853   |
   871   o  ea207398892e
   854   o  ea207398892e
   872   
   855   
   873   $ hg up 'desc(B0)' --hidden
   856   $ hg up 'desc(B0)' --hidden
   874   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   857   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
   875   working directory parent is obsolete! (0dec01379d3b)
   858   working directory parent is obsolete! (0dec01379d3b)
   876   (use 'hg evolve' to update to its successor: eb5a0daa2192)
   859   (use 'hg evolve' to update to its successor: eb5a0daa2192)
   877   $ hg tlog
   860   $ hg tlog
   878   o  eb5a0daa2192
   861   o  eb5a0daa2192
   879   |    Precursors: 0dec01379d3b 471f378eab4c
   862   |    Precursors: 2:0dec01379d3b 1:471f378eab4c
   880   |    semi-colon: 0dec01379d3b; 471f378eab4c
   863   |    semi-colon: 2:0dec01379d3b; 1:471f378eab4c
   881   | @  0dec01379d3b
   864   | @  0dec01379d3b
   882   | |    Successors: [eb5a0daa2192]
   865   | |    Successors: 4:eb5a0daa2192
   883   | |    semi-colon: [eb5a0daa2192]
   866   | |    semi-colon: 4:eb5a0daa2192
   884   | |    Fate: rewritten as eb5a0daa2192
   867   | |    Fate: rewritten as 4:eb5a0daa2192
   885   | |
   868   | |
   886   | x  471f378eab4c
   869   | x  471f378eab4c
   887   |/     Successors: [eb5a0daa2192]
   870   |/     Successors: 4:eb5a0daa2192
   888   |      semi-colon: [eb5a0daa2192]
   871   |      semi-colon: 4:eb5a0daa2192
   889   |      Fate: rewritten as eb5a0daa2192
   872   |      Fate: rewritten as 4:eb5a0daa2192
   890   |
   873   |
   891   o  ea207398892e
   874   o  ea207398892e
   892   
   875   
   893   $ hg fatelog
   876   $ hg fatelog
   894   o  eb5a0daa2192
   877   o  eb5a0daa2192
   895   |
   878   |
   896   | @  0dec01379d3b
   879   | @  0dec01379d3b
   897   | |    Obsfate: rewritten as eb5a0daa2192
   880   | |    Obsfate: rewritten as 4:eb5a0daa2192
   898   | |
   881   | |
   899   | x  471f378eab4c
   882   | x  471f378eab4c
   900   |/     Obsfate: rewritten as eb5a0daa2192
   883   |/     Obsfate: rewritten as 4:eb5a0daa2192
   901   |
   884   |
   902   o  ea207398892e
   885   o  ea207398892e
   903   
   886   
   904 
   887 
   905   $ hg up 'desc(B1)' --hidden
   888   $ hg up 'desc(B1)' --hidden
   906   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   889   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
   907   working directory parent is obsolete! (b7ea6d14e664)
   890   working directory parent is obsolete! (b7ea6d14e664)
   908   (use 'hg evolve' to update to its successor: eb5a0daa2192)
   891   (use 'hg evolve' to update to its successor: eb5a0daa2192)
   909   $ hg tlog
   892   $ hg tlog
   910   o  eb5a0daa2192
   893   o  eb5a0daa2192
   911   |    Precursors: 471f378eab4c b7ea6d14e664
   894   |    Precursors: 1:471f378eab4c 3:b7ea6d14e664
   912   |    semi-colon: 471f378eab4c; b7ea6d14e664
   895   |    semi-colon: 1:471f378eab4c; 3:b7ea6d14e664
   913   | @  b7ea6d14e664
   896   | @  b7ea6d14e664
   914   | |    Successors: [eb5a0daa2192]
   897   | |    Successors: 4:eb5a0daa2192
   915   | |    semi-colon: [eb5a0daa2192]
   898   | |    semi-colon: 4:eb5a0daa2192
   916   | |    Fate: rewritten as eb5a0daa2192
   899   | |    Fate: rewritten as 4:eb5a0daa2192
   917   | |
   900   | |
   918   | x  471f378eab4c
   901   | x  471f378eab4c
   919   |/     Successors: [eb5a0daa2192]
   902   |/     Successors: 4:eb5a0daa2192
   920   |      semi-colon: [eb5a0daa2192]
   903   |      semi-colon: 4:eb5a0daa2192
   921   |      Fate: rewritten as eb5a0daa2192
   904   |      Fate: rewritten as 4:eb5a0daa2192
   922   |
   905   |
   923   o  ea207398892e
   906   o  ea207398892e
   924   
   907   
   925   $ hg fatelog
   908   $ hg fatelog
   926   o  eb5a0daa2192
   909   o  eb5a0daa2192
   927   |
   910   |
   928   | @  b7ea6d14e664
   911   | @  b7ea6d14e664
   929   | |    Obsfate: rewritten as eb5a0daa2192
   912   | |    Obsfate: rewritten as 4:eb5a0daa2192
   930   | |
   913   | |
   931   | x  471f378eab4c
   914   | x  471f378eab4c
   932   |/     Obsfate: rewritten as eb5a0daa2192
   915   |/     Obsfate: rewritten as 4:eb5a0daa2192
   933   |
   916   |
   934   o  ea207398892e
   917   o  ea207398892e
   935   
   918   
   936 
   919 
   937   $ hg up 'desc(C0)'
   920   $ hg up 'desc(C0)'
   941   |
   924   |
   942   o  ea207398892e
   925   o  ea207398892e
   943   
   926   
   944   $ hg tlog --hidden
   927   $ hg tlog --hidden
   945   @  eb5a0daa2192
   928   @  eb5a0daa2192
   946   |    Precursors: 471f378eab4c b7ea6d14e664
   929   |    Precursors: 1:471f378eab4c 3:b7ea6d14e664
   947   |    semi-colon: 471f378eab4c; b7ea6d14e664
   930   |    semi-colon: 1:471f378eab4c; 3:b7ea6d14e664
   948   | x  b7ea6d14e664
   931   | x  b7ea6d14e664
   949   | |    Precursors: 0dec01379d3b
   932   | |    Precursors: 2:0dec01379d3b
   950   | |    semi-colon: 0dec01379d3b
   933   | |    semi-colon: 2:0dec01379d3b
   951   | |    Successors: [eb5a0daa2192]
   934   | |    Successors: 4:eb5a0daa2192
   952   | |    semi-colon: [eb5a0daa2192]
   935   | |    semi-colon: 4:eb5a0daa2192
   953   | |    Fate: rewritten as eb5a0daa2192
   936   | |    Fate: rewritten as 4:eb5a0daa2192
   954   | |
   937   | |
   955   | | x  0dec01379d3b
   938   | | x  0dec01379d3b
   956   | |/     Successors: [b7ea6d14e664]
   939   | |/     Successors: 3:b7ea6d14e664
   957   | |      semi-colon: [b7ea6d14e664]
   940   | |      semi-colon: 3:b7ea6d14e664
   958   | |      Fate: reworded as b7ea6d14e664
   941   | |      Fate: reworded as 3:b7ea6d14e664
   959   | |
   942   | |
   960   | x  471f378eab4c
   943   | x  471f378eab4c
   961   |/     Successors: [eb5a0daa2192]
   944   |/     Successors: 4:eb5a0daa2192
   962   |      semi-colon: [eb5a0daa2192]
   945   |      semi-colon: 4:eb5a0daa2192
   963   |      Fate: rewritten as eb5a0daa2192
   946   |      Fate: rewritten as 4:eb5a0daa2192
   964   |
   947   |
   965   o  ea207398892e
   948   o  ea207398892e
   966   
   949   
   967   $ hg fatelog --hidden
   950   $ hg fatelog --hidden
   968   @  eb5a0daa2192
   951   @  eb5a0daa2192
   969   |
   952   |
   970   | x  b7ea6d14e664
   953   | x  b7ea6d14e664
   971   | |    Obsfate: rewritten as eb5a0daa2192
   954   | |    Obsfate: rewritten as 4:eb5a0daa2192
   972   | |
   955   | |
   973   | | x  0dec01379d3b
   956   | | x  0dec01379d3b
   974   | |/     Obsfate: reworded as b7ea6d14e664
   957   | |/     Obsfate: reworded as 3:b7ea6d14e664
   975   | |
   958   | |
   976   | x  471f378eab4c
   959   | x  471f378eab4c
   977   |/     Obsfate: rewritten as eb5a0daa2192
   960   |/     Obsfate: rewritten as 4:eb5a0daa2192
   978   |
   961   |
   979   o  ea207398892e
   962   o  ea207398892e
   980   
   963   
   981   $ hg fatelogjson --hidden
   964   $ hg fatelogjson --hidden
   982   @  eb5a0daa2192 ""
   965   @  eb5a0daa2192 []
   983   |
   966   |
   984   | x  b7ea6d14e664 [{"markers": [["b7ea6d14e664bdc8922221f7992631b50da3fb07", ["eb5a0daa21923bbf8caeb2c42085b9e463861fd0"], 0, [["ef1", "13"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["eb5a0daa21923bbf8caeb2c42085b9e463861fd0"], "users": ["test"], "verb": "rewritten"}]
   967   | x  b7ea6d14e664 [{"markers": [["b7ea6d14e664bdc8922221f7992631b50da3fb07", ["eb5a0daa21923bbf8caeb2c42085b9e463861fd0"], 0, [["ef1", "13"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["eb5a0daa21923bbf8caeb2c42085b9e463861fd0"], "users": ["test"], "verb": "rewritten"}]
   985   | |
   968   | |
   986   | | x  0dec01379d3b [{"markers": [["0dec01379d3be6318c470ead31b1fe7ae7cb53d5", ["b7ea6d14e664bdc8922221f7992631b50da3fb07"], 0, [["ef1", "1"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["b7ea6d14e664bdc8922221f7992631b50da3fb07"], "users": ["test"], "verb": "reworded"}]
   969   | | x  0dec01379d3b [{"markers": [["0dec01379d3be6318c470ead31b1fe7ae7cb53d5", ["b7ea6d14e664bdc8922221f7992631b50da3fb07"], 0, [["ef1", "1"], ["operation", "amend"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["b7ea6d14e664bdc8922221f7992631b50da3fb07"], "users": ["test"], "verb": "reworded"}]
   987   | |/
   970   | |/
   988   | x  471f378eab4c [{"markers": [["471f378eab4c5e25f6c77f785b27c936efb22874", ["eb5a0daa21923bbf8caeb2c42085b9e463861fd0"], 0, [["ef1", "9"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["eb5a0daa21923bbf8caeb2c42085b9e463861fd0"], "users": ["test"], "verb": "rewritten"}]
   971   | x  471f378eab4c [{"markers": [["471f378eab4c5e25f6c77f785b27c936efb22874", ["eb5a0daa21923bbf8caeb2c42085b9e463861fd0"], 0, [["ef1", "9"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["eb5a0daa21923bbf8caeb2c42085b9e463861fd0"], "users": ["test"], "verb": "rewritten"}]
   989   |/
   972   |/
   990   o  ea207398892e ""
   973   o  ea207398892e []
   991   
   974   
   992 
   975 
   993 Test template with pushed and pulled obs markers
   976 Test template with pushed and pulled obs markers
   994 ==============================================
   977 ==============================================
   995 
   978 
  1029   |
  1012   |
  1030   | x  changeset:   2:fdf9bde5129a
  1013   | x  changeset:   2:fdf9bde5129a
  1031   |/   parent:      0:ea207398892e
  1014   |/   parent:      0:ea207398892e
  1032   |    user:        test
  1015   |    user:        test
  1033   |    date:        Thu Jan 01 00:00:00 1970 +0000
  1016   |    date:        Thu Jan 01 00:00:00 1970 +0000
  1034   |    obsolete:    reworded as 7a230b46bf61
  1017   |    obsolete:    reworded as 3:7a230b46bf61
  1035   |    summary:     A1
  1018   |    summary:     A1
  1036   |
  1019   |
  1037   | x  changeset:   1:471f378eab4c
  1020   | x  changeset:   1:471f378eab4c
  1038   |/   user:        test
  1021   |/   user:        test
  1039   |    date:        Thu Jan 01 00:00:00 1970 +0000
  1022   |    date:        Thu Jan 01 00:00:00 1970 +0000
  1040   |    obsolete:    reworded as fdf9bde5129a
  1023   |    obsolete:    reworded as 2:fdf9bde5129a
  1041   |    summary:     A0
  1024   |    summary:     A0
  1042   |
  1025   |
  1043   o  changeset:   0:ea207398892e
  1026   o  changeset:   0:ea207398892e
  1044      user:        test
  1027      user:        test
  1045      date:        Thu Jan 01 00:00:00 1970 +0000
  1028      date:        Thu Jan 01 00:00:00 1970 +0000
  1053   adding manifests
  1036   adding manifests
  1054   adding file changes
  1037   adding file changes
  1055   added 1 changesets with 0 changes to 1 files (+1 heads)
  1038   added 1 changesets with 0 changes to 1 files (+1 heads)
  1056   2 new obsolescence markers
  1039   2 new obsolescence markers
  1057   obsoleted 1 changesets
  1040   obsoleted 1 changesets
       
  1041   new changesets 7a230b46bf61
  1058   (run 'hg heads' to see heads, 'hg merge' to merge)
  1042   (run 'hg heads' to see heads, 'hg merge' to merge)
  1059   working directory parent is obsolete! (471f378eab4c)
  1043   working directory parent is obsolete! (471f378eab4c)
  1060   (use 'hg evolve' to update to its successor: 7a230b46bf61)
  1044   (use 'hg evolve' to update to its successor: 7a230b46bf61)
  1061   $ hg log --hidden -G
  1045   $ hg log --hidden -G
  1062   o  changeset:   2:7a230b46bf61
  1046   o  changeset:   2:7a230b46bf61
  1067   |  summary:     A2
  1051   |  summary:     A2
  1068   |
  1052   |
  1069   | @  changeset:   1:471f378eab4c
  1053   | @  changeset:   1:471f378eab4c
  1070   |/   user:        test
  1054   |/   user:        test
  1071   |    date:        Thu Jan 01 00:00:00 1970 +0000
  1055   |    date:        Thu Jan 01 00:00:00 1970 +0000
  1072   |    obsolete:    reworded as 7a230b46bf61
  1056   |    obsolete:    reworded as 2:7a230b46bf61
  1073   |    summary:     A0
  1057   |    summary:     A0
  1074   |
  1058   |
  1075   o  changeset:   0:ea207398892e
  1059   o  changeset:   0:ea207398892e
  1076      user:        test
  1060      user:        test
  1077      date:        Thu Jan 01 00:00:00 1970 +0000
  1061      date:        Thu Jan 01 00:00:00 1970 +0000
  1080 Check templates
  1064 Check templates
  1081 ---------------
  1065 ---------------
  1082 
  1066 
  1083   $ hg tlog
  1067   $ hg tlog
  1084   o  7a230b46bf61
  1068   o  7a230b46bf61
  1085   |    Precursors: 471f378eab4c
  1069   |    Precursors: 1:471f378eab4c
  1086   |    semi-colon: 471f378eab4c
  1070   |    semi-colon: 1:471f378eab4c
  1087   | @  471f378eab4c
  1071   | @  471f378eab4c
  1088   |/     Successors: [7a230b46bf61]
  1072   |/     Successors: 2:7a230b46bf61
  1089   |      semi-colon: [7a230b46bf61]
  1073   |      semi-colon: 2:7a230b46bf61
  1090   |      Fate: reworded as 7a230b46bf61
  1074   |      Fate: reworded as 2:7a230b46bf61
  1091   |
  1075   |
  1092   o  ea207398892e
  1076   o  ea207398892e
  1093   
  1077   
  1094   $ hg fatelog --hidden -v
  1078   $ hg fatelog --hidden -v
  1095   o  7a230b46bf61
  1079   o  7a230b46bf61
  1096   |
  1080   |
  1097   | @  471f378eab4c
  1081   | @  471f378eab4c
  1098   |/     Obsfate: reworded as 7a230b46bf61 by test (at 1970-01-01 00:00 +0000)
  1082   |/     Obsfate: reworded as 2:7a230b46bf61 by test (at 1970-01-01 00:00 +0000)
  1099   |
  1083   |
  1100   o  ea207398892e
  1084   o  ea207398892e
  1101   
  1085   
  1102   $ hg up 'desc(A2)'
  1086   $ hg up 'desc(A2)'
  1103   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
  1087   0 files updated, 0 files merged, 0 files removed, 0 files unresolved
  1111   |
  1095   |
  1112   o  ea207398892e
  1096   o  ea207398892e
  1113   
  1097   
  1114   $ hg tlog --hidden
  1098   $ hg tlog --hidden
  1115   @  7a230b46bf61
  1099   @  7a230b46bf61
  1116   |    Precursors: 471f378eab4c
  1100   |    Precursors: 1:471f378eab4c
  1117   |    semi-colon: 471f378eab4c
  1101   |    semi-colon: 1:471f378eab4c
  1118   | x  471f378eab4c
  1102   | x  471f378eab4c
  1119   |/     Successors: [7a230b46bf61]
  1103   |/     Successors: 2:7a230b46bf61
  1120   |      semi-colon: [7a230b46bf61]
  1104   |      semi-colon: 2:7a230b46bf61
  1121   |      Fate: reworded as 7a230b46bf61
  1105   |      Fate: reworded as 2:7a230b46bf61
  1122   |
  1106   |
  1123   o  ea207398892e
  1107   o  ea207398892e
  1124   
  1108   
  1125   $ hg fatelog --hidden -v
  1109   $ hg fatelog --hidden -v
  1126   @  7a230b46bf61
  1110   @  7a230b46bf61
  1127   |
  1111   |
  1128   | x  471f378eab4c
  1112   | x  471f378eab4c
  1129   |/     Obsfate: reworded as 7a230b46bf61 by test (at 1970-01-01 00:00 +0000)
  1113   |/     Obsfate: reworded as 2:7a230b46bf61 by test (at 1970-01-01 00:00 +0000)
  1130   |
  1114   |
  1131   o  ea207398892e
  1115   o  ea207398892e
  1132   
  1116   
  1133 
  1117 
  1134   $ hg fatelogjson --hidden
  1118   $ hg fatelogjson --hidden
  1135   @  7a230b46bf61 ""
  1119   @  7a230b46bf61 []
  1136   |
  1120   |
  1137   | x  471f378eab4c [{"markers": [["471f378eab4c5e25f6c77f785b27c936efb22874", ["fdf9bde5129a28d4548fadd3f62b265cdd3b7a2e"], 0, [["ef1", "1"], ["user", "test"]], [0.0, 0], null], ["fdf9bde5129a28d4548fadd3f62b265cdd3b7a2e", ["7a230b46bf61e50b30308c6cfd7bd1269ef54702"], 0, [["ef1", "1"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["7a230b46bf61e50b30308c6cfd7bd1269ef54702"], "users": ["test"], "verb": "reworded"}]
  1121   | x  471f378eab4c [{"markers": [["471f378eab4c5e25f6c77f785b27c936efb22874", ["fdf9bde5129a28d4548fadd3f62b265cdd3b7a2e"], 0, [["ef1", "1"], ["operation", "amend"], ["user", "test"]], [0.0, 0], null], ["fdf9bde5129a28d4548fadd3f62b265cdd3b7a2e", ["7a230b46bf61e50b30308c6cfd7bd1269ef54702"], 0, [["ef1", "1"], ["operation", "amend"], ["user", "test"]], [0.0, 0], null]], "max_date": [0.0, 0], "min_date": [0.0, 0], "successors": ["7a230b46bf61e50b30308c6cfd7bd1269ef54702"], "users": ["test"], "verb": "reworded"}]
  1138   |/
  1122   |/
  1139   o  ea207398892e ""
  1123   o  ea207398892e []
  1140   
  1124   
  1141 
  1125 
  1142 Test templates with pruned commits
  1126 Test templates with pruned commits
  1143 ==================================
  1127 ==================================
  1144 
  1128