Patchwork D8797: tests: add test for unqualified include of a built-in template map

login
register
mail settings
Submitter phabricator
Date July 22, 2020, 9:23 p.m.
Message ID <differential-rev-PHID-DREV-we4eguqmoajulykxelk6-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/46842/
State Superseded
Headers show

Comments

phabricator - July 22, 2020, 9:23 p.m.
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  The feature was added in 081b08e4ea13 <https://phab.mercurial-scm.org/rHG081b08e4ea1350f5c501b0ae0915547b8acc5503> (templater: look for mapfiles in
  template paths, 2015-05-15), but no test case was added.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

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
@@ -125,6 +125,16 @@ 
   date:        Wed Jan 01 10:01:00 2020 +0000
   summary:     third
   
+Test including a built-in template map
+
+  $ cat <<'EOF' > map-include-builtin
+  > %include map-cmdline.default
+  > [templates]
+  > changeset = "{changeset_quiet}\n"
+  > EOF
+  $ hg log -l1 -T./map-include-builtin
+  8:95c24699272e
+  
 
 Test docheader, docfooter and separator in template map