Mercurial > evolve
changeset 5355:53953532885b
tests: put a common template snippet into [templates]
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 07 Jun 2020 17:56:03 +0800 |
parents | c669a08746b5 |
children | 0b9fcdcdc58f |
files | tests/test-evolve-obshistory-amend.t |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-evolve-obshistory-amend.t Sun Jun 07 17:48:16 2020 +0800 +++ b/tests/test-evolve-obshistory-amend.t Sun Jun 07 17:56:03 2020 +0800 @@ -5,6 +5,11 @@ $ . $TESTDIR/testlib/obshistory_setup.sh + $ cat >> $HGRCPATH << EOF + > [templates] + > logmarkers = '{if(markers, join(markers % "at {date|hgdate} by {user|person} "))}' + > EOF + Test output on amended commit ============================= @@ -127,24 +132,24 @@ x 471f378eab4c A0 - $ hg obslog 4ae3a4151de9 --graph --no-origin -T'{desc|firstline} {if(markers, join(markers % "at {date|hgdate} by {user|person} "))}' + $ hg obslog 4ae3a4151de9 --graph --no-origin -T '{desc|firstline} {logmarkers}' @ A1 | x A0 at 0 0 by test - $ hg obslog 4ae3a4151de9 --graph -T'{desc|firstline} {if(markers, join(markers % "at {date|hgdate} by {user|person} "))}' + $ hg obslog 4ae3a4151de9 --graph -T '{desc|firstline} {logmarkers}' @ A1 at 0 0 by test | x A0 Check that the same thing works with the old {shortdescription} form - $ hg obslog 4ae3a4151de9 --graph --no-origin -T'{shortdescription} {if(markers, join(markers % "at {date|hgdate} by {user|person} "))}' + $ hg obslog 4ae3a4151de9 --graph --no-origin -T '{shortdescription} {logmarkers}' @ A1 | x A0 at 0 0 by test - $ hg obslog 4ae3a4151de9 --graph -T'{shortdescription} {if(markers, join(markers % "at {date|hgdate} by {user|person} "))}' + $ hg obslog 4ae3a4151de9 --graph -T '{shortdescription} {logmarkers}' @ A1 at 0 0 by test | x A0