Mercurial > public > mercurial-scm > hg-stable
diff tests/test-command-template.t @ 29858:b1f69dbdd76b
templater: add template path to __base__ search
This does a fall-back check for style files or directories that are
in Mercurial's template path for user convenience.
We intentionally don't use this for the built-in coal style because we don't
want the style to mysteriously break if the working directory just
happens to have a file named "paper".
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 24 Aug 2016 17:43:45 -0700 |
parents | cc11079644fc |
children | e83f89d3b1f7 |
line wrap: on
line diff
--- a/tests/test-command-template.t Tue Aug 23 16:40:08 2016 -0400 +++ b/tests/test-command-template.t Wed Aug 24 17:43:45 2016 -0700 @@ -103,6 +103,18 @@ $ hg log -l1 -T./map-simple 8 +Test template map inheritance + + $ echo "__base__ = map-cmdline.default" > map-simple + $ printf 'cset = "changeset: ***{rev}***\\n"\n' >> map-simple + $ hg log -l1 -T./map-simple + changeset: ***8*** + tag: tip + user: test + date: Wed Jan 01 10:01:00 2020 +0000 + summary: third + + Template should precede style option $ hg log -l1 --style default -T '{rev}\n'