comparison mercurial/peer.py @ 28547:73d01cba5810

templater: expand list of parsed templates to template node This patch eliminates a nested data structure other than the parsed tree. ('template', [(op, data), ..]) -> ('template', (op, data), ..) New expanded tree can be processed by common parser functions. This change will help implementing template aliases. Because a (template ..) node should have at least one child node, an empty template (template []) is mapped to (string ''). Also a trivial string (template [(string ..)]) node is unwrapped to (string ..) at parsing phase, instead of compiling phase.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 13 Feb 2016 23:20:47 +0900
parents 8d38eab2777a
children ead25aa27a43
comparison
equal deleted inserted replaced
28546:1987ed32efca 28547:73d01cba5810