# HG changeset patch # User Martin von Zweigbergk # Date 2020-07-24 05:44:18 # Node ID 46c8db8d4e03aa55e3415dc07c20187b1884279d # Parent 668af67bfd1884eb293a39903ffc2560cf03b062 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 diff --git a/tests/test-template-map.t b/tests/test-template-map.t --- a/tests/test-template-map.t +++ b/tests/test-template-map.t @@ -1281,6 +1281,12 @@ Error if style is a directory: 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