Mercurial > hg
changeset 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 | 668af67bfd18 |
children | 9a308336fe41 |
files | tests/test-template-map.t |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-template-map.t Wed Jul 22 10:34:24 2020 -0700 +++ b/tests/test-template-map.t Thu Jul 23 22:44:18 2020 -0700 @@ -1281,6 +1281,12 @@ abort: Is a directory: 'somedir' [255] +Error if style is a directory whose name is a built-in style: + + $ hg log --style coal + abort: Is a directory: '*/mercurial/templates/coal' (glob) + [255] + Error if style missing key: $ echo 'q = q' > t