Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/cmdutil.py @ 32853:9d76812f9b0b
formatter: document lookuptemplate()
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 06 May 2017 16:24:21 +0900 |
parents | edde2e974ed0 |
children | 50586a0a946f |
comparison
equal
deleted
inserted
replaced
32852:edde2e974ed0 | 32853:9d76812f9b0b |
---|---|
1645 if not self.footer: | 1645 if not self.footer: |
1646 self.footer = templater.stringify( | 1646 self.footer = templater.stringify( |
1647 self.t(self._parts['footer'], **props)) | 1647 self.t(self._parts['footer'], **props)) |
1648 | 1648 |
1649 def _lookuplogtemplate(ui, tmpl, style): | 1649 def _lookuplogtemplate(ui, tmpl, style): |
1650 """ | 1650 """Find the template matching the given template spec or style |
1651 Find the template matching the given template spec or style. | 1651 |
1652 See formatter.lookuptemplate() for details. | |
1652 """ | 1653 """ |
1653 | 1654 |
1654 # ui settings | 1655 # ui settings |
1655 if not tmpl and not style: # template are stronger than style | 1656 if not tmpl and not style: # template are stronger than style |
1656 tmpl = ui.config('ui', 'logtemplate') | 1657 tmpl = ui.config('ui', 'logtemplate') |