diff tests/test-evolve-obshistory-amend.t @ 4983:6d40e0166522

obslog: make {node} the full node and leave shortening to template It should be up to the user to shorten the nodeid as much or as little as they like.
author Martin von Zweigbergk <martinvonz@google.com>
date Wed, 04 Dec 2019 10:57:29 -0800
parents bb2042ff6444
children 900668a93629
line wrap: on
line diff
--- a/tests/test-evolve-obshistory-amend.t	Wed Dec 04 11:00:00 2019 +0100
+++ b/tests/test-evolve-obshistory-amend.t	Wed Dec 04 10:57:29 2019 -0800
@@ -115,7 +115,7 @@
 
 Test that content diff works with templating
   $ hg obslog --color=debug --patch 4ae3a4151de9 \
-  > -T '{node} {desc|firstline}\n{markers % "patch:\n```{patch}```\n"}'
+  > -T '{node|short} {desc|firstline}\n{markers % "patch:\n```{patch}```\n"}'
   @  4ae3a4151de9 A1
   |
   x  471f378eab4c A0
@@ -145,7 +145,7 @@
   [
       {
           "markers": [],
-          "node": "4ae3a4151de9",
+          "node": "4ae3a4151de9aa872113f0b196e28323308981e8",
           "shortdescription": "A1"
       },
       {
@@ -167,7 +167,7 @@
                   "verb": "rewritten"
               }
           ],
-          "node": "471f378eab4c",
+          "node": "471f378eab4c5e25f6c77f785b27c936efb22874",
           "shortdescription": "A0"
       }
   ]
@@ -212,7 +212,7 @@
                   "verb": "rewritten"
               }
           ],
-          "node": "471f378eab4c",
+          "node": "471f378eab4c5e25f6c77f785b27c936efb22874",
           "shortdescription": "A0"
       }
   ]
@@ -375,7 +375,7 @@
   
 Test that description diff works with templating
   $ hg obslog --color=debug --patch 92210308515b \
-  > -T '{node} {desc|firstline}\n{markers % "description diff:\n```{descdiff}```\n"}'
+  > -T '{node|short} {desc|firstline}\n{markers % "description diff:\n```{descdiff}```\n"}'
   @  92210308515b A3
   |
   x  4f1685185907 A2