Patchwork D8803: tests: show unusual error message for `hg log --style coal`

login
register
mail settings
Submitter phabricator
Date July 24, 2020, 6:01 a.m.
Message ID <differential-rev-PHID-DREV-cuc4vr5xehf6rkbte2vc-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/46856/
State Superseded
Headers show

Comments

phabricator - July 24, 2020, 6:01 a.m.
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  It turns out that we show the full path when the given style name
  matches a subdirectory of `mercurial/templates/`.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D8803

AFFECTED FILES
  tests/test-template-map.t

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

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 @@ 
   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