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
--- 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