mercurial/pure/__init__.py
author Yuya Nishihara <yuya@tcha.org>
Fri, 22 Apr 2016 21:29:13 +0900
changeset 29828 cc11079644fc
parent 16438 28a90cdf0ca0
permissions -rw-r--r--
templater: make pad() evaluate boolean argument (BC) Otherwise it would crash if template expression was passed. This patch unifies the way how boolean expression is evaluated, which involves BC. Before "if(true)" and "pad(..., 'false')" were False, which are now True since they are boolean literal and non-empty string respectively. "func is runsymbol" is the same hack as evalstringliteral(), which is needed for label() to take color literals.