comparison tests/test-template-map.t @ 45259:9a308336fe41

templater: make templatepath() not return directory paths The previous patch added a test showing an unusal error message. This make it more like other error messages. Differential Revision: https://phab.mercurial-scm.org/D8804
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 23 Jul 2020 22:47:55 -0700
parents 46c8db8d4e03
children ed84a4d48910
comparison
equal deleted inserted replaced
45258:46c8db8d4e03 45259:9a308336fe41
1282 [255] 1282 [255]
1283 1283
1284 Error if style is a directory whose name is a built-in style: 1284 Error if style is a directory whose name is a built-in style:
1285 1285
1286 $ hg log --style coal 1286 $ hg log --style coal
1287 abort: Is a directory: '*/mercurial/templates/coal' (glob) 1287 abort: style 'coal' not found
1288 (available styles: bisect, changelog, compact, default, phases, show, status, xml)
1288 [255] 1289 [255]
1289 1290
1290 Error if style missing key: 1291 Error if style missing key:
1291 1292
1292 $ echo 'q = q' > t 1293 $ echo 'q = q' > t