diff hgext/chgserver.py @ 28545:1d461ee26e1b

templater: lift parsed and compiled templates to generic data types Before this patch, parsed and compiled templates were kept as lists. That was inconvenient for applying transformation such as alias expansion. This patch changes the types of the outermost objects as follows: stage old new -------- -------------- ------------------------------ parsed [(op, ..)] ('template', [(op, ..)]) compiled [(func, data)] (runtemplate, [(func, data)]) New templater.parse() function has the same signature as revset.parse() and fileset.parse().
author Yuya Nishihara <yuya@tcha.org>
date Sat, 13 Feb 2016 23:54:24 +0900
parents 881d027d3935
children 5346e9b910fc
line wrap: on
line diff