##// END OF EJS Templates
hgweb: pass ui to diffstatgen() explicitly
Yuya Nishihara -
r38604:66eb74f9 default
parent child Browse files
Show More
@@ -509,7 +509,7 b' def changesetentry(web, ctx):'
509 509 diff = diffs(web, ctx, basectx, None, style)
510 510
511 511 parity = paritygen(web.stripecount)
512 diffstatsgen = diffstatgen(ctx, basectx)
512 diffstatsgen = diffstatgen(web.repo.ui, ctx, basectx)
513 513 diffstats = diffstat(ctx, diffstatsgen, parity)
514 514
515 515 return dict(
@@ -655,10 +655,10 b' def compare(contextnum, leftlines, right'
655 655 return templateutil.mappinggenerator(_comparegen, args=args,
656 656 name='comparisonblock')
657 657
658 def diffstatgen(ctx, basectx):
658 def diffstatgen(ui, ctx, basectx):
659 659 '''Generator function that provides the diffstat data.'''
660 660
661 diffopts = patch.diffopts(ctx._repo.ui, {'noprefix': False})
661 diffopts = patch.diffopts(ui, {'noprefix': False})
662 662 stats = patch.diffstatdata(
663 663 util.iterlines(ctx.diff(basectx, opts=diffopts)))
664 664 maxname, maxtotal, addtotal, removetotal, binary = patch.diffstatsum(stats)
General Comments 0
You need to be logged in to leave comments. Login now