##// END OF EJS Templates
cmdutil: allow extra properties to be added to each context...
Gregory Szorc -
r34190:e9898ad3 default
parent child Browse files
Show More
@@ -2617,7 +2617,8 b' def _graphnodeformatter(ui, displayer):'
2617 2617 return formatnode
2618 2618
2619 2619 def displaygraph(ui, repo, dag, displayer, edgefn, getrenamed=None,
2620 filematcher=None):
2620 filematcher=None, props=None):
2621 props = props or {}
2621 2622 formatnode = _graphnodeformatter(ui, displayer)
2622 2623 state = graphmod.asciistate()
2623 2624 styles = state['styles']
@@ -2658,7 +2659,7 b' def displaygraph(ui, repo, dag, displaye'
2658 2659 firstedge = next(edges)
2659 2660 width = firstedge[2]
2660 2661 displayer.show(ctx, copies=copies, matchfn=revmatchfn,
2661 _graphwidth=width)
2662 _graphwidth=width, **props)
2662 2663 lines = displayer.hunk.pop(rev).split('\n')
2663 2664 if not lines[-1]:
2664 2665 del lines[-1]
General Comments 0
You need to be logged in to leave comments. Login now