##// END OF EJS Templates
tests: add test for bad template %include and __base__...
Martin von Zweigbergk -
r45767:4489e9a2 default
parent child Browse files
Show More
@@ -125,6 +125,15 b' Test template map inheritance'
125 125 date: Wed Jan 01 10:01:00 2020 +0000
126 126 summary: third
127 127
128 Test map inheritance with non-existent base
129
130 $ echo "__base__ = non-existent" > map-base-nonexistent
131 $ printf 'cset = "changeset: ***{rev}***\\n"\n' >> map-simple
132 $ hg log -l1 -T./map-base-nonexistent
133 abort: style '$TESTTMP/a/non-existent' not found
134 (available styles: bisect, changelog, compact, default, phases, show, status, xml)
135 [255]
136
128 137 Test including a built-in template map
129 138
130 139 $ cat <<'EOF' > map-include-builtin
@@ -136,6 +145,17 b' Test including a built-in template map'
136 145 8:95c24699272e
137 146
138 147
148 Test including a nonexistent template map
149 BROKEN: This should probably be an error just like the bad __base__ above
150
151 $ cat <<'EOF' > map-include-nonexistent
152 > %include nonexistent
153 > [templates]
154 > changeset = "test\n"
155 > EOF
156 $ hg log -l1 -T./map-include-nonexistent
157 test
158
139 159 Test docheader, docfooter and separator in template map
140 160
141 161 $ cat <<'EOF' > map-myjson
General Comments 0
You need to be logged in to leave comments. Login now