Mercurial > hg
comparison hgext/keyword.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 | 311472301ef3 |
children | 9a6fa1d93bc8 |
comparison
equal
deleted
inserted
replaced
28544:4d93d73b8aec | 28545:1d461ee26e1b |
---|