Show More
@@ -133,6 +133,14 b' Test map inheritance with non-existent b' | |||
|
133 | 133 | (available styles: bisect, changelog, compact, default, phases, show, status, xml) |
|
134 | 134 | [255] |
|
135 | 135 | |
|
136 | Test map inheritance with directory as base | |
|
137 | ||
|
138 | $ mkdir somedir | |
|
139 | $ echo "__base__ = somedir" > map-base-dir | |
|
140 | $ hg log -l1 -T./map-base-dir | |
|
141 | abort: Is a directory: '$TESTTMP/a/somedir' | |
|
142 | [255] | |
|
143 | ||
|
136 | 144 | Test including a built-in template map |
|
137 | 145 | |
|
138 | 146 | $ cat <<'EOF' > map-include-builtin |
@@ -155,6 +163,17 b' BROKEN: This should probably be an error' | |||
|
155 | 163 | $ hg log -l1 -T./map-include-nonexistent |
|
156 | 164 | test |
|
157 | 165 | |
|
166 | Test including a directory as template map | |
|
167 | BROKEN: This should probably be an error just like the bad __base__ above | |
|
168 | ||
|
169 | $ cat <<'EOF' > map-include-dir | |
|
170 | > %include somedir | |
|
171 | > [templates] | |
|
172 | > changeset = "test\n" | |
|
173 | > EOF | |
|
174 | $ hg log -l1 -T./map-include-dir | |
|
175 | test | |
|
176 | ||
|
158 | 177 | Test docheader, docfooter and separator in template map |
|
159 | 178 | |
|
160 | 179 | $ cat <<'EOF' > map-myjson |
@@ -1256,6 +1275,12 b' Error if no style:' | |||
|
1256 | 1275 | abort: specify a template |
|
1257 | 1276 | [255] |
|
1258 | 1277 | |
|
1278 | Error if style is a directory: | |
|
1279 | ||
|
1280 | $ hg log --style somedir | |
|
1281 | abort: Is a directory: 'somedir' | |
|
1282 | [255] | |
|
1283 | ||
|
1259 | 1284 | Error if style missing key: |
|
1260 | 1285 | |
|
1261 | 1286 | $ echo 'q = q' > t |
General Comments 0
You need to be logged in to leave comments.
Login now