tests/test-command-template.t
changeset 34714 f4aeb952ab77
parent 34659 3edfd472f3cb
child 34715 f17a0e18c47e
--- a/tests/test-command-template.t	Sat Oct 14 17:41:41 2017 +0900
+++ b/tests/test-command-template.t	Sat Oct 14 17:51:01 2017 +0900
@@ -259,6 +259,25 @@
   $ hg log -l1 -T./map-simple
   8
 
+ a map file may have [templates] section:
+
+  $ cat <<'EOF' > map-simple
+  > [templates]
+  > changeset = "{rev}\n"
+  > EOF
+  $ hg log -l1 -T./map-simple
+  8
+
+ so it can be included in hgrc
+
+  $ cat <<'EOF' > myhgrc
+  > %include map-simple
+  > [templates]
+  > foo = "{changeset}"
+  > EOF
+  $ HGRCPATH=./myhgrc hg log -l1 -Tfoo
+  8
+
 Test template map inheritance
 
   $ echo "__base__ = map-cmdline.default" > map-simple