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