comparison mercurial/cmdutil.py @ 28428:6a4a4ca21907

graphlog: bring back color to node symbol template Follows up 3356bf61fa25. A ui object is required to render labels.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 09 Mar 2016 23:57:15 +0900
parents 3356bf61fa25
children 3072ce740945
comparison
equal deleted inserted replaced
28427:969a4615c4c4 28428:6a4a4ca21907
2204 props['templ'] = templ 2204 props['templ'] = templ
2205 props['cache'] = cache 2205 props['cache'] = cache
2206 def formatnode(repo, ctx): 2206 def formatnode(repo, ctx):
2207 props['ctx'] = ctx 2207 props['ctx'] = ctx
2208 props['repo'] = repo 2208 props['repo'] = repo
2209 props['ui'] = repo.ui
2209 props['revcache'] = {} 2210 props['revcache'] = {}
2210 return templater.stringify(templ('graphnode', **props)) 2211 return templater.stringify(templ('graphnode', **props))
2211 return formatnode 2212 return formatnode
2212 2213
2213 def displaygraph(ui, repo, dag, displayer, edgefn, getrenamed=None, 2214 def displaygraph(ui, repo, dag, displayer, edgefn, getrenamed=None,