Mercurial > public > mercurial-scm > hg-stable
diff mercurial/formatter.py @ 38451:5b04a0c30f3f
formatter: look for template symbols from the associated name
Otherwise symbolsused() would fail if a named template is specified with -T.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 18 Jun 2018 21:58:04 +0900 |
parents | 8399438bc7ef |
children | 28f974d83c0a |
line wrap: on
line diff
--- a/mercurial/formatter.py Mon Jun 25 15:54:56 2018 +0530 +++ b/mercurial/formatter.py Mon Jun 18 21:58:04 2018 +0900 @@ -420,7 +420,7 @@ @util.propertycache def _symbolsused(self): - return self._t.symbolsuseddefault() + return self._t.symbolsused(self._tref) def contexthint(self, datafields): '''set of context object keys to be required by the template, given