Mercurial > hg
comparison tests/test-template-map.t @ 45258:46c8db8d4e03
tests: show unusual error message for `hg log --style coal`
It turns out that we show the full path when the given style name
matches a subdirectory of `mercurial/templates/`.
Differential Revision: https://phab.mercurial-scm.org/D8803
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 23 Jul 2020 22:44:18 -0700 |
parents | f512708a9ea8 |
children | 9a308336fe41 |
comparison
equal
deleted
inserted
replaced
45257:668af67bfd18 | 45258:46c8db8d4e03 |
---|---|
1279 | 1279 |
1280 $ hg log --style somedir | 1280 $ hg log --style somedir |
1281 abort: Is a directory: 'somedir' | 1281 abort: Is a directory: 'somedir' |
1282 [255] | 1282 [255] |
1283 | 1283 |
1284 Error if style is a directory whose name is a built-in style: | |
1285 | |
1286 $ hg log --style coal | |
1287 abort: Is a directory: '*/mercurial/templates/coal' (glob) | |
1288 [255] | |
1289 | |
1284 Error if style missing key: | 1290 Error if style missing key: |
1285 | 1291 |
1286 $ echo 'q = q' > t | 1292 $ echo 'q = q' > t |
1287 $ hg log --style ./t | 1293 $ hg log --style ./t |
1288 abort: "changeset" not in template map | 1294 abort: "changeset" not in template map |