tests: add test for unqualified include of a built-in template map
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 21 Jul 2020 22:52:22 -0700
changeset 45206 db0be4678399
parent 45205 4b923da0cb86
child 45207 4489e9a22763
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
tests/test-template-map.t
--- 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