comparison tests/test-template-map.t @ 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 4c1b4805db57
children 4489e9a22763
comparison
equal deleted inserted replaced
45205:4b923da0cb86 45206:db0be4678399
122 changeset: ***8*** 122 changeset: ***8***
123 tag: tip 123 tag: tip
124 user: test 124 user: test
125 date: Wed Jan 01 10:01:00 2020 +0000 125 date: Wed Jan 01 10:01:00 2020 +0000
126 summary: third 126 summary: third
127
128 Test including a built-in template map
129
130 $ cat <<'EOF' > map-include-builtin
131 > %include map-cmdline.default
132 > [templates]
133 > changeset = "{changeset_quiet}\n"
134 > EOF
135 $ hg log -l1 -T./map-include-builtin
136 8:95c24699272e
127 137
128 138
129 Test docheader, docfooter and separator in template map 139 Test docheader, docfooter and separator in template map
130 140
131 $ cat <<'EOF' > map-myjson 141 $ cat <<'EOF' > map-myjson