changeset 45206:db0be4678399

tests: add test for unqualified include of a built-in template map The feature was added in 081b08e4ea13 (templater: look for mapfiles in template paths, 2015-05-15), but no test case was added. Differential Revision: https://phab.mercurial-scm.org/D8797
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 21 Jul 2020 22:52:22 -0700
parents 4b923da0cb86
children 4489e9a22763
files tests/test-template-map.t
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-template-map.t	Wed Jul 22 22:09:38 2020 -0400
+++ b/tests/test-template-map.t	Tue Jul 21 22:52:22 2020 -0700
@@ -125,6 +125,16 @@
   date:        Wed Jan 01 10:01:00 2020 +0000
   summary:     third
   
+Test including a built-in template map
+
+  $ cat <<'EOF' > map-include-builtin
+  > %include map-cmdline.default
+  > [templates]
+  > changeset = "{changeset_quiet}\n"
+  > EOF
+  $ hg log -l1 -T./map-include-builtin
+  8:95c24699272e
+  
 
 Test docheader, docfooter and separator in template map