# HG changeset patch # User Martin von Zweigbergk # Date 1573176136 28800 # Node ID f84a6ddb7f3785aaf03ae9e3fcbd3e0082bbd399 # Parent ad2a8a649b61afdca0424810c873ea13cd27daa4 tests: demonstrate broken {patch} and {desc-diff} template keywords diff -r ad2a8a649b61 -r f84a6ddb7f37 tests/test-evolve-obshistory-amend.t --- a/tests/test-evolve-obshistory-amend.t Fri Nov 15 11:48:17 2019 +0700 +++ b/tests/test-evolve-obshistory-amend.t Thu Nov 07 17:22:16 2019 -0800 @@ -111,6 +111,16 @@ +42 +Test that content diff works with templating +BROKEN: should show content diff + $ hg obslog --color=debug --patch 4ae3a4151de9 \ + > -T '{node} {desc|firstline}\n{markers % "patch:\n```{patch}```\n"}' + @ 4ae3a4151de9 A1 + | + x 471f378eab4c A0 + patch: + `````` + $ hg obslog 4ae3a4151de9 --graph -T'{label("log.summary", desc|firstline)} {if(markers, join(markers % "at {date|hgdate} by {user|person} ", " also "))}' @ A1 | @@ -351,6 +361,15 @@ +42 +Test that description diff works with templating +BROKEN: should show description diff + $ hg obslog --color=debug --patch 92210308515b \ + > -T '{node} {desc|firstline}\n{markers % "description diff:\n```{desc-diff}```\n"}' + @ 92210308515b A3 + | + [ ui.warning|hg: parse error: arithmetic only defined on integers] + [255] + Check the output on the server ------------------------------