tests/test-evolve-obshistory-amend.t
changeset 5349 e8660b28bfee
parent 5339 258c0a99c5b0
child 5362 72340abfcece
equal deleted inserted replaced
5348:a9f9edb168a1 5349:e8660b28bfee
    43   
    43   
    44 Check output on the client side
    44 Check output on the client side
    45 -------------------------------
    45 -------------------------------
    46   $ hg obslog --patch 4ae3a4151de9
    46   $ hg obslog --patch 4ae3a4151de9
    47   @  4ae3a4151de9 (2) A1
    47   @  4ae3a4151de9 (2) A1
       
    48   |    rewritten(description, content) from 471f378eab4c using amend by test (*) (glob)
       
    49   |      diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description
       
    50   |      --- a/changeset-description
       
    51   |      +++ b/changeset-description
       
    52   |      @@ -1,1 +1,3 @@
       
    53   |      -A0
       
    54   |      +A1
       
    55   |      +
       
    56   |      +Better commit message
       
    57   |
       
    58   |      diff -r 471f378eab4c -r 4ae3a4151de9 A0
       
    59   |      --- a/A0	Thu Jan 01 00:00:00 1970 +0000
       
    60   |      +++ b/A0	Thu Jan 01 00:00:00 1970 +0000
       
    61   |      @@ -1,1 +1,2 @@
       
    62   |       A0
       
    63   |      +42
       
    64   |
    48   |
    65   |
    49   x  471f378eab4c (1) A0
    66   x  471f378eab4c (1) A0
    50        rewritten(description, content) as 4ae3a4151de9 using amend by test (*) (glob)
       
    51          diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description
       
    52          --- a/changeset-description
       
    53          +++ b/changeset-description
       
    54          @@ -1,1 +1,3 @@
       
    55          -A0
       
    56          +A1
       
    57          +
       
    58          +Better commit message
       
    59   
       
    60          diff -r 471f378eab4c -r 4ae3a4151de9 A0
       
    61          --- a/A0	Thu Jan 01 00:00:00 1970 +0000
       
    62          +++ b/A0	Thu Jan 01 00:00:00 1970 +0000
       
    63          @@ -1,1 +1,2 @@
       
    64           A0
       
    65          +42
       
    66   
       
    67   
    67   
    68   $ hg obslog --patch --color debug
    68   $ hg obslog --patch --color debug
    69   @  [evolve.node|4ae3a4151de9] [evolve.rev|(2)] [evolve.short_description|A1]
    69   @  [evolve.node|4ae3a4151de9] [evolve.rev|(2)] [evolve.short_description|A1]
       
    70   |    [evolve.verb|rewritten](description, content) from [evolve.node|471f378eab4c] using [evolve.operation|amend] by [evolve.user|test] [evolve.date|(Thu Jan 01 00:00:00 1970 +0000)]
       
    71   |      [diff.diffline|diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description]
       
    72   |      [diff.file_a|--- a/changeset-description]
       
    73   |      [diff.file_b|+++ b/changeset-description]
       
    74   |      [diff.hunk|@@ -1,1 +1,3 @@]
       
    75   |      [diff.deleted|-A0]
       
    76   |      [diff.inserted|+A1]
       
    77   |      [diff.inserted|+]
       
    78   |      [diff.inserted|+Better commit message]
       
    79   |
       
    80   |      [diff.diffline|diff -r 471f378eab4c -r 4ae3a4151de9 A0]
       
    81   |      [diff.file_a|--- a/A0	Thu Jan 01 00:00:00 1970 +0000]
       
    82   |      [diff.file_b|+++ b/A0	Thu Jan 01 00:00:00 1970 +0000]
       
    83   |      [diff.hunk|@@ -1,1 +1,2 @@]
       
    84   |       A0
       
    85   |      [diff.inserted|+42]
       
    86   |
    70   |
    87   |
    71   x  [evolve.node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0]
    88   x  [evolve.node|471f378eab4c] [evolve.rev|(1)] [evolve.short_description|A0]
    72        [evolve.verb|rewritten](description, content) as [evolve.node|4ae3a4151de9] using [evolve.operation|amend] by [evolve.user|test] [evolve.date|(Thu Jan 01 00:00:00 1970 +0000)]
       
    73          [diff.diffline|diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description]
       
    74          [diff.file_a|--- a/changeset-description]
       
    75          [diff.file_b|+++ b/changeset-description]
       
    76          [diff.hunk|@@ -1,1 +1,3 @@]
       
    77          [diff.deleted|-A0]
       
    78          [diff.inserted|+A1]
       
    79          [diff.inserted|+]
       
    80          [diff.inserted|+Better commit message]
       
    81   
       
    82          [diff.diffline|diff -r 471f378eab4c -r 4ae3a4151de9 A0]
       
    83          [diff.file_a|--- a/A0	Thu Jan 01 00:00:00 1970 +0000]
       
    84          [diff.file_b|+++ b/A0	Thu Jan 01 00:00:00 1970 +0000]
       
    85          [diff.hunk|@@ -1,1 +1,2 @@]
       
    86           A0
       
    87          [diff.inserted|+42]
       
    88   
       
    89   
    89   
    90 
    90 
    91   $ hg obslog --no-graph --patch 4ae3a4151de9
    91   $ hg obslog --no-graph --patch 4ae3a4151de9
    92   4ae3a4151de9 (2) A1
    92   4ae3a4151de9 (2) A1
    93   
    93     rewritten(description, content) from 471f378eab4c using amend by test (Thu Jan 01 00:00:00 1970 +0000)
    94   471f378eab4c (1) A0
       
    95     rewritten(description, content) as 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
       
    96       diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description
    94       diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description
    97       --- a/changeset-description
    95       --- a/changeset-description
    98       +++ b/changeset-description
    96       +++ b/changeset-description
    99       @@ -1,1 +1,3 @@
    97       @@ -1,1 +1,3 @@
   100       -A0
    98       -A0
   108       @@ -1,1 +1,2 @@
   106       @@ -1,1 +1,2 @@
   109        A0
   107        A0
   110       +42
   108       +42
   111   
   109   
   112   
   110   
       
   111   471f378eab4c (1) A0
       
   112   
   113 
   113 
   114 Test that content diff works with templating
   114 Test that content diff works with templating
   115   $ hg obslog --color=debug --patch 4ae3a4151de9 \
   115   $ hg obslog --color=debug --patch 4ae3a4151de9 \
   116   > -T '{node|short} {desc|firstline}\n{markers % "patch:\n```{patch}```\n"}'
   116   > -T '{node|short} {desc|firstline}\n{markers % "patch:\n```{patch}```\n"}'
   117   @  4ae3a4151de9 A1
   117   @  4ae3a4151de9 A1
   118   |
   118   |  patch:
       
   119   |  ```
       
   120   |  [diff.diffline|diff -r 471f378eab4c -r 4ae3a4151de9 A0]
       
   121   |  [diff.file_a|--- a/A0	Thu Jan 01 00:00:00 1970 +0000]
       
   122   |  [diff.file_b|+++ b/A0	Thu Jan 01 00:00:00 1970 +0000]
       
   123   |  [diff.hunk|@@ -1,1 +1,2 @@]
       
   124   |   A0
       
   125   |  [diff.inserted|+42]
       
   126   |  ```
   119   x  471f378eab4c A0
   127   x  471f378eab4c A0
   120      patch:
   128   
   121      ```
   129 
   122      [diff.diffline|diff -r 471f378eab4c -r 4ae3a4151de9 A0]
   130   $ hg obslog 4ae3a4151de9 --graph --no-origin -T'{label("log.summary", desc|firstline)} {if(markers, join(markers % "at {date|hgdate} by {user|person} ", " also "))}'
   123      [diff.file_a|--- a/A0	Thu Jan 01 00:00:00 1970 +0000]
   131   @  A1
   124      [diff.file_b|+++ b/A0	Thu Jan 01 00:00:00 1970 +0000]
   132   |
   125      [diff.hunk|@@ -1,1 +1,2 @@]
   133   x  A0 at 0 0 by test
   126       A0
   134   
   127      [diff.inserted|+42]
       
   128      ```
       
   129 
       
   130   $ hg obslog 4ae3a4151de9 --graph -T'{label("log.summary", desc|firstline)} {if(markers, join(markers % "at {date|hgdate} by {user|person} ", " also "))}'
   135   $ hg obslog 4ae3a4151de9 --graph -T'{label("log.summary", desc|firstline)} {if(markers, join(markers % "at {date|hgdate} by {user|person} ", " also "))}'
       
   136   @  A1 at 0 0 by test
       
   137   |
       
   138   x  A0
       
   139   
       
   140 
       
   141 Check that the same thing works with the old {shortdescription} form
       
   142   $ hg obslog 4ae3a4151de9 --graph --no-origin -T'{label("log.summary", shortdescription)} {if(markers, join(markers % "at {date|hgdate} by {user|person} ", " also "))}'
   131   @  A1
   143   @  A1
   132   |
   144   |
   133   x  A0 at 0 0 by test
   145   x  A0 at 0 0 by test
   134   
   146   
   135 
       
   136 Check that the same thing works with the old {shortdescription} form
       
   137   $ hg obslog 4ae3a4151de9 --graph -T'{label("log.summary", shortdescription)} {if(markers, join(markers % "at {date|hgdate} by {user|person} ", " also "))}'
   147   $ hg obslog 4ae3a4151de9 --graph -T'{label("log.summary", shortdescription)} {if(markers, join(markers % "at {date|hgdate} by {user|person} ", " also "))}'
   138   @  A1
   148   @  A1 at 0 0 by test
   139   |
   149   |
   140   x  A0 at 0 0 by test
   150   x  A0
   141   
   151   
   142   $ hg obslog 4ae3a4151de9 --no-graph -Tjson | python -m json.tool
   152   $ hg obslog 4ae3a4151de9 --no-graph -Tjson | python -m json.tool
   143   [
   153   [
   144       {
       
   145           "markers": [],
       
   146           "node": "4ae3a4151de9aa872113f0b196e28323308981e8",
       
   147           "shortdescription": "A1"
       
   148       },
       
   149       {
   154       {
   150           "markers": [
   155           "markers": [
   151               {
   156               {
   152                   "dates": [
   157                   "dates": [
   153                       [
   158                       [
   160                       "content"
   165                       "content"
   161                   ],
   166                   ],
   162                   "operations": [
   167                   "operations": [
   163                       "amend"
   168                       "amend"
   164                   ],
   169                   ],
   165                   "succnodes": [
   170                   "prednodes": [
   166                       "4ae3a4151de9aa872113f0b196e28323308981e8"
   171                       "471f378eab4c5e25f6c77f785b27c936efb22874"
   167                   ],
   172                   ],
   168                   "users": [
   173                   "users": [
   169                       "test"
   174                       "test"
   170                   ],
   175                   ],
   171                   "verb": "rewritten"
   176                   "verb": "rewritten"
   172               }
   177               }
   173           ],
   178           ],
       
   179           "node": "4ae3a4151de9aa872113f0b196e28323308981e8",
       
   180           "shortdescription": "A1"
       
   181       },
       
   182       {
       
   183           "markers": [],
   174           "node": "471f378eab4c5e25f6c77f785b27c936efb22874",
   184           "node": "471f378eab4c5e25f6c77f785b27c936efb22874",
   175           "shortdescription": "A0"
   185           "shortdescription": "A0"
   176       }
   186       }
   177   ]
   187   ]
   178   $ hg obslog --hidden --patch 471f378eab4c
   188   $ hg obslog --hidden --patch 471f378eab4c
   179   x  471f378eab4c (1) A0
   189   x  471f378eab4c (1) A0
   180        rewritten(description, content) as 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
       
   181          diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description
       
   182          --- a/changeset-description
       
   183          +++ b/changeset-description
       
   184          @@ -1,1 +1,3 @@
       
   185          -A0
       
   186          +A1
       
   187          +
       
   188          +Better commit message
       
   189   
       
   190          diff -r 471f378eab4c -r 4ae3a4151de9 A0
       
   191          --- a/A0	Thu Jan 01 00:00:00 1970 +0000
       
   192          +++ b/A0	Thu Jan 01 00:00:00 1970 +0000
       
   193          @@ -1,1 +1,2 @@
       
   194           A0
       
   195          +42
       
   196   
       
   197   
   190   
   198   $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | python -m json.tool
   191   $ hg obslog --hidden 471f378eab4c --no-graph -Tjson | python -m json.tool
   199   [
   192   [
   200       {
   193       {
   201           "markers": [
   194           "markers": [],
   202               {
       
   203                   "dates": [
       
   204                       [
       
   205                           *, (glob)
       
   206                           0
       
   207                       ]
       
   208                   ],
       
   209                   "effects": [
       
   210                       *, (glob)
       
   211                       "content"
       
   212                   ],
       
   213                   "operations": [
       
   214                       "amend"
       
   215                   ],
       
   216                   "succnodes": [
       
   217                       "4ae3a4151de9aa872113f0b196e28323308981e8"
       
   218                   ],
       
   219                   "users": [
       
   220                       "test"
       
   221                   ],
       
   222                   "verb": "rewritten"
       
   223               }
       
   224           ],
       
   225           "node": "471f378eab4c5e25f6c77f785b27c936efb22874",
   195           "node": "471f378eab4c5e25f6c77f785b27c936efb22874",
   226           "shortdescription": "A0"
   196           "shortdescription": "A0"
   227       }
   197       }
   228   ]
   198   ]
   229   $ hg update 471f378eab4c
   199   $ hg update 471f378eab4c
   238   (use 'hg evolve' to update to its successor: 4ae3a4151de9)
   208   (use 'hg evolve' to update to its successor: 4ae3a4151de9)
   239 
   209 
   240 Check output on the server side
   210 Check output on the server side
   241 -------------------------------
   211 -------------------------------
   242 
   212 
   243   $ hg obslog -R $TESTTMP/server --patch 4ae3a4151de9
   213   $ hg obslog -R $TESTTMP/server --patch 4ae3a4151de9 --no-origin
   244   o  4ae3a4151de9 (1) A1
   214   o  4ae3a4151de9 (1) A1
   245   |
   215   |
   246   x  471f378eab4c
   216   x  471f378eab4c
   247        rewritten(description, content) as 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   217        rewritten(description, content) as 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   248          (No patch available, context is not local)
   218          (No patch available, context is not local)
   249   
   219   
   250   $ hg obslog -R $TESTTMP/server -f --patch 4ae3a4151de9
   220   $ hg obslog -R $TESTTMP/server --patch 4ae3a4151de9
   251   o  4ae3a4151de9 (1) A1
   221   o  4ae3a4151de9 (1) A1
   252   
   222   |    rewritten(description, content) from 471f378eab4c using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   253   $ hg obslog -R $TESTTMP/server --no-graph --patch 4ae3a4151de9
   223   |      (No patch available, predecessor is unknown locally)
       
   224   |
       
   225   x  471f378eab4c
       
   226   
       
   227   $ hg obslog -R $TESTTMP/server --no-graph --patch 4ae3a4151de9 --no-origin
   254   4ae3a4151de9 (1) A1
   228   4ae3a4151de9 (1) A1
   255   
   229   
   256   471f378eab4c
   230   471f378eab4c
   257     rewritten(description, content) as 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   231     rewritten(description, content) as 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   258       (No patch available, context is not local)
   232       (No patch available, context is not local)
   259   
   233   
   260 
   234   $ hg obslog -R $TESTTMP/server --no-graph --patch 4ae3a4151de9
       
   235   4ae3a4151de9 (1) A1
       
   236     rewritten(description, content) from 471f378eab4c using amend by test (Thu Jan 01 00:00:00 1970 +0000)
       
   237       (No patch available, predecessor is unknown locally)
       
   238   
       
   239   471f378eab4c
       
   240   
       
   241 
       
   242   $ hg obslog -R $TESTTMP/server -f --patch 4ae3a4151de9 --no-origin
       
   243   o  4ae3a4151de9 (1) A1
       
   244   
       
   245   $ hg obslog -R $TESTTMP/server -f --patch 4ae3a4151de9
       
   246   o  4ae3a4151de9 (1) A1
       
   247   
       
   248   $ hg obslog -R $TESTTMP/server --no-graph -f --patch 4ae3a4151de9 --no-origin
       
   249   4ae3a4151de9 (1) A1
       
   250   
   261   $ hg obslog -R $TESTTMP/server --no-graph -f --patch 4ae3a4151de9
   251   $ hg obslog -R $TESTTMP/server --no-graph -f --patch 4ae3a4151de9
   262   4ae3a4151de9 (1) A1
   252   4ae3a4151de9 (1) A1
   263   
   253   
   264 
   254 
   265 Amend two more times
   255 Amend two more times
   331 Check the output on the client
   321 Check the output on the client
   332 ------------------------------
   322 ------------------------------
   333 
   323 
   334   $ hg obslog --patch 92210308515b
   324   $ hg obslog --patch 92210308515b
   335   @  92210308515b (4) A3
   325   @  92210308515b (4) A3
   336   |
   326   |    reworded(description) from 4f1685185907 using amend by test (Thu Jan 01 00:00:01 1970 +0000)
   337   x  4f1685185907 (3) A2
       
   338   |    reworded(description) as 92210308515b using amend by test (Thu Jan 01 00:00:01 1970 +0000)
       
   339   |      diff -r 4f1685185907 -r 92210308515b changeset-description
   327   |      diff -r 4f1685185907 -r 92210308515b changeset-description
   340   |      --- a/changeset-description
   328   |      --- a/changeset-description
   341   |      +++ b/changeset-description
   329   |      +++ b/changeset-description
   342   |      @@ -1,3 +1,3 @@
   330   |      @@ -1,3 +1,3 @@
   343   |      -A2
   331   |      -A2
   345   |
   333   |
   346   |      -Better better commit message
   334   |      -Better better commit message
   347   |      +Better better better commit message
   335   |      +Better better better commit message
   348   |
   336   |
   349   |
   337   |
   350   x  4ae3a4151de9 (2) A1
   338   x  4f1685185907 (3) A2
   351   |    reworded(description) as 4f1685185907 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   339   |    reworded(description) from 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   352   |      diff -r 4ae3a4151de9 -r 4f1685185907 changeset-description
   340   |      diff -r 4ae3a4151de9 -r 4f1685185907 changeset-description
   353   |      --- a/changeset-description
   341   |      --- a/changeset-description
   354   |      +++ b/changeset-description
   342   |      +++ b/changeset-description
   355   |      @@ -1,3 +1,3 @@
   343   |      @@ -1,3 +1,3 @@
   356   |      -A1
   344   |      -A1
   358   |
   346   |
   359   |      -Better commit message
   347   |      -Better commit message
   360   |      +Better better commit message
   348   |      +Better better commit message
   361   |
   349   |
   362   |
   350   |
       
   351   x  4ae3a4151de9 (2) A1
       
   352   |    rewritten(description, content) from 471f378eab4c using amend by test (Thu Jan 01 00:00:00 1970 +0000)
       
   353   |      diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description
       
   354   |      --- a/changeset-description
       
   355   |      +++ b/changeset-description
       
   356   |      @@ -1,1 +1,3 @@
       
   357   |      -A0
       
   358   |      +A1
       
   359   |      +
       
   360   |      +Better commit message
       
   361   |
       
   362   |      diff -r 471f378eab4c -r 4ae3a4151de9 A0
       
   363   |      --- a/A0	Thu Jan 01 00:00:00 1970 +0000
       
   364   |      +++ b/A0	Thu Jan 01 00:00:00 1970 +0000
       
   365   |      @@ -1,1 +1,2 @@
       
   366   |       A0
       
   367   |      +42
       
   368   |
       
   369   |
   363   x  471f378eab4c (1) A0
   370   x  471f378eab4c (1) A0
   364        rewritten(description, content) as 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
       
   365          diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description
       
   366          --- a/changeset-description
       
   367          +++ b/changeset-description
       
   368          @@ -1,1 +1,3 @@
       
   369          -A0
       
   370          +A1
       
   371          +
       
   372          +Better commit message
       
   373   
       
   374          diff -r 471f378eab4c -r 4ae3a4151de9 A0
       
   375          --- a/A0	Thu Jan 01 00:00:00 1970 +0000
       
   376          +++ b/A0	Thu Jan 01 00:00:00 1970 +0000
       
   377          @@ -1,1 +1,2 @@
       
   378           A0
       
   379          +42
       
   380   
       
   381   
   371   
   382 Test that description diff works with templating
   372 Test that description diff works with templating
   383   $ hg obslog --color=debug --patch 92210308515b \
   373   $ hg obslog --color=debug --patch 92210308515b \
   384   > -T '{node|short} {desc|firstline}\n{markers % "description diff:\n```{descdiff}```\n"}'
   374   > -T '{node|short} {desc|firstline}\n{markers % "description diff:\n```{descdiff}```\n"}'
   385   @  92210308515b A3
   375   @  92210308515b A3
   386   |
       
   387   x  4f1685185907 A2
       
   388   |  description diff:
   376   |  description diff:
   389   |  ```
   377   |  ```
   390   |  [diff.diffline|diff -r 4f1685185907 -r 92210308515b changeset-description]
   378   |  [diff.diffline|diff -r 4f1685185907 -r 92210308515b changeset-description]
   391   |  [diff.file_a|--- a/changeset-description]
   379   |  [diff.file_a|--- a/changeset-description]
   392   |  [diff.file_b|+++ b/changeset-description]
   380   |  [diff.file_b|+++ b/changeset-description]
   395   |  [diff.inserted|+A3]
   383   |  [diff.inserted|+A3]
   396   |
   384   |
   397   |  [diff.deleted|-Better better commit message]
   385   |  [diff.deleted|-Better better commit message]
   398   |  [diff.inserted|+Better better better commit message]
   386   |  [diff.inserted|+Better better better commit message]
   399   |  ```
   387   |  ```
   400   x  4ae3a4151de9 A1
   388   x  4f1685185907 A2
   401   |  description diff:
   389   |  description diff:
   402   |  ```
   390   |  ```
   403   |  [diff.diffline|diff -r 4ae3a4151de9 -r 4f1685185907 changeset-description]
   391   |  [diff.diffline|diff -r 4ae3a4151de9 -r 4f1685185907 changeset-description]
   404   |  [diff.file_a|--- a/changeset-description]
   392   |  [diff.file_a|--- a/changeset-description]
   405   |  [diff.file_b|+++ b/changeset-description]
   393   |  [diff.file_b|+++ b/changeset-description]
   408   |  [diff.inserted|+A2]
   396   |  [diff.inserted|+A2]
   409   |
   397   |
   410   |  [diff.deleted|-Better commit message]
   398   |  [diff.deleted|-Better commit message]
   411   |  [diff.inserted|+Better better commit message]
   399   |  [diff.inserted|+Better better commit message]
   412   |  ```
   400   |  ```
       
   401   x  4ae3a4151de9 A1
       
   402   |  description diff:
       
   403   |  ```
       
   404   |  [diff.diffline|diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description]
       
   405   |  [diff.file_a|--- a/changeset-description]
       
   406   |  [diff.file_b|+++ b/changeset-description]
       
   407   |  [diff.hunk|@@ -1,1 +1,3 @@]
       
   408   |  [diff.deleted|-A0]
       
   409   |  [diff.inserted|+A1]
       
   410   |  [diff.inserted|+]
       
   411   |  [diff.inserted|+Better commit message]
       
   412   |  ```
   413   x  471f378eab4c A0
   413   x  471f378eab4c A0
   414      description diff:
   414   
   415      ```
       
   416      [diff.diffline|diff -r 471f378eab4c -r 4ae3a4151de9 changeset-description]
       
   417      [diff.file_a|--- a/changeset-description]
       
   418      [diff.file_b|+++ b/changeset-description]
       
   419      [diff.hunk|@@ -1,1 +1,3 @@]
       
   420      [diff.deleted|-A0]
       
   421      [diff.inserted|+A1]
       
   422      [diff.inserted|+]
       
   423      [diff.inserted|+Better commit message]
       
   424      ```
       
   425 
   415 
   426 Check the output on the server
   416 Check the output on the server
   427 ------------------------------
   417 ------------------------------
   428 
   418 
   429   $ hg obslog -R $TESTTMP/server --patch 92210308515b
   419   $ hg obslog -R $TESTTMP/server --patch 92210308515b
   430   o  92210308515b (2) A3
   420   o  92210308515b (2) A3
       
   421   |    reworded(description) from 4f1685185907 using amend by test (Thu Jan 01 00:00:01 1970 +0000)
       
   422   |      (No patch available, predecessor is unknown locally)
   431   |
   423   |
   432   x  4f1685185907
   424   x  4f1685185907
   433   |    reworded(description) as 92210308515b using amend by test (Thu Jan 01 00:00:01 1970 +0000)
   425   |    reworded(description) from 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   434   |      (No patch available, context is not local)
   426   |      (No patch available, context is not local)
   435   |
   427   |
   436   x  4ae3a4151de9 (1) A1
   428   x  4ae3a4151de9 (1) A1
   437   |    reworded(description) as 4f1685185907 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   429   |    rewritten(description, content) from 471f378eab4c using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   438   |      (No patch available, successor is unknown locally)
   430   |      (No patch available, predecessor is unknown locally)
   439   |
   431   |
   440   x  471f378eab4c
   432   x  471f378eab4c
   441        rewritten(description, content) as 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
       
   442          (No patch available, context is not local)
       
   443   
   433   
   444   $ hg obslog -R $TESTTMP/server -f --patch 92210308515b
   434   $ hg obslog -R $TESTTMP/server -f --patch 92210308515b
   445   o  92210308515b (2) A3
   435   o  92210308515b (2) A3
       
   436   |    reworded(description) from 4ae3a4151de9 using amend by test (between Thu Jan 01 00:00:00 1970 +0000 and Thu Jan 01 00:00:01 1970 +0000)
       
   437   |      diff -r 4ae3a4151de9 -r 92210308515b changeset-description
       
   438   |      --- a/changeset-description
       
   439   |      +++ b/changeset-description
       
   440   |      @@ -1,3 +1,3 @@
       
   441   |      -A1
       
   442   |      +A3
       
   443   |
       
   444   |      -Better commit message
       
   445   |      +Better better better commit message
       
   446   |
   446   |
   447   |
   447   x  4ae3a4151de9 (1) A1
   448   x  4ae3a4151de9 (1) A1
   448        reworded(description) as 92210308515b using amend by test (between Thu Jan 01 00:00:00 1970 +0000 and Thu Jan 01 00:00:01 1970 +0000)
       
   449          diff -r 4ae3a4151de9 -r 92210308515b changeset-description
       
   450          --- a/changeset-description
       
   451          +++ b/changeset-description
       
   452          @@ -1,3 +1,3 @@
       
   453          -A1
       
   454          +A3
       
   455   
       
   456          -Better commit message
       
   457          +Better better better commit message
       
   458   
       
   459   
   449   
   460   $ hg obslog -R $TESTTMP/server --no-graph --patch 92210308515b
   450   $ hg obslog -R $TESTTMP/server --no-graph --patch 92210308515b
   461   92210308515b (2) A3
   451   92210308515b (2) A3
       
   452     reworded(description) from 4f1685185907 using amend by test (Thu Jan 01 00:00:01 1970 +0000)
       
   453       (No patch available, predecessor is unknown locally)
   462   
   454   
   463   4f1685185907
   455   4f1685185907
   464     reworded(description) as 92210308515b using amend by test (Thu Jan 01 00:00:01 1970 +0000)
   456     reworded(description) from 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   465       (No patch available, context is not local)
   457       (No patch available, context is not local)
   466   
   458   
   467   4ae3a4151de9 (1) A1
   459   4ae3a4151de9 (1) A1
   468     reworded(description) as 4f1685185907 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   460     rewritten(description, content) from 471f378eab4c using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   469       (No patch available, successor is unknown locally)
   461       (No patch available, predecessor is unknown locally)
   470   
   462   
   471   471f378eab4c
   463   471f378eab4c
   472     rewritten(description, content) as 4ae3a4151de9 using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   464   
   473       (No patch available, context is not local)
       
   474   
       
   475 
       
   476   $ hg obslog -R $TESTTMP/server --no-graph -f --patch 92210308515b
   465   $ hg obslog -R $TESTTMP/server --no-graph -f --patch 92210308515b
   477   92210308515b (2) A3
   466   92210308515b (2) A3
   478   
   467     reworded(description) from 4ae3a4151de9 using amend by test (between Thu Jan 01 00:00:00 1970 +0000 and Thu Jan 01 00:00:01 1970 +0000)
   479   4ae3a4151de9 (1) A1
       
   480     reworded(description) as 92210308515b using amend by test (between Thu Jan 01 00:00:00 1970 +0000 and Thu Jan 01 00:00:01 1970 +0000)
       
   481       diff -r 4ae3a4151de9 -r 92210308515b changeset-description
   468       diff -r 4ae3a4151de9 -r 92210308515b changeset-description
   482       --- a/changeset-description
   469       --- a/changeset-description
   483       +++ b/changeset-description
   470       +++ b/changeset-description
   484       @@ -1,3 +1,3 @@
   471       @@ -1,3 +1,3 @@
   485       -A1
   472       -A1
   487    
   474    
   488       -Better commit message
   475       -Better commit message
   489       +Better better better commit message
   476       +Better better better commit message
   490   
   477   
   491   
   478   
       
   479   4ae3a4151de9 (1) A1
       
   480