tests: show unusual error message for `hg log --style coal`
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 23 Jul 2020 22:44:18 -0700
changeset 45258 46c8db8d4e03
parent 45257 668af67bfd18
child 45259 9a308336fe41
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
tests/test-template-map.t
--- 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