Mercurial > evolve
diff tests/test-evolve-obshistory-amend.t @ 4917:d1d8e97d32af
obslog: make changeset available to templater
obslog templating currently has very limited support for templating
the precursor changeset (when available). The only available keywords
are {node}, {rev}, and {shortdescription}. This patch makes the entire
changeset available to the templater by passing it to
formatter.context(). That function has been available since Mercurial
4.2.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 04 Nov 2019 14:31:08 -0800 |
parents | c16fed4908d8 |
children | f16274729530 |
line wrap: on
line diff
--- a/tests/test-evolve-obshistory-amend.t Wed Oct 16 11:10:04 2019 -0700 +++ b/tests/test-evolve-obshistory-amend.t Mon Nov 04 14:31:08 2019 -0800 @@ -111,6 +111,13 @@ +42 + $ hg obslog 4ae3a4151de9 --graph -T'{label("log.summary", desc|firstline)} {if(markers, join(markers % "at {date|hgdate} by {user|person} ", " also "))}' + @ A1 + | + x A0 at 0 0 by test + + +Check that the same thing works with the old {shortdescription} form $ hg obslog 4ae3a4151de9 --graph -T'{label("log.summary", shortdescription)} {if(markers, join(markers % "at {date|hgdate} by {user|person} ", " also "))}' @ A1 |