# HG changeset patch # User Anton Shestakov # Date 1591523763 -28800 # Node ID 53953532885bb028076494d0eb864fdaeb077344 # Parent c669a08746b56e23ff51033b34edc31d932beca0 tests: put a common template snippet into [templates] diff -r c669a08746b5 -r 53953532885b tests/test-evolve-obshistory-amend.t --- 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