Show More
@@ -670,7 +670,7 b' def diffsummary(statgen):' | |||||
670 | return _(' %d files changed, %d insertions(+), %d deletions(-)\n') % ( |
|
670 | return _(' %d files changed, %d insertions(+), %d deletions(-)\n') % ( | |
671 | len(stats), addtotal, removetotal) |
|
671 | len(stats), addtotal, removetotal) | |
672 |
|
672 | |||
673 |
def _diffstattmplgen(context |
|
673 | def _diffstattmplgen(context, ctx, statgen, parity): | |
674 | stats, maxname, maxtotal, addtotal, removetotal, binary = next(statgen) |
|
674 | stats, maxname, maxtotal, addtotal, removetotal, binary = next(statgen) | |
675 | files = ctx.files() |
|
675 | files = ctx.files() | |
676 |
|
676 | |||
@@ -684,7 +684,7 b' def _diffstattmplgen(context, tmpl, ctx,' | |||||
684 | template = 'diffstatlink' if filename in files else 'diffstatnolink' |
|
684 | template = 'diffstatlink' if filename in files else 'diffstatnolink' | |
685 | total = adds + removes |
|
685 | total = adds + removes | |
686 | fileno += 1 |
|
686 | fileno += 1 | |
687 |
yield |
|
687 | yield context.process(template, { | |
688 | 'node': ctx.hex(), |
|
688 | 'node': ctx.hex(), | |
689 | 'file': filename, |
|
689 | 'file': filename, | |
690 | 'fileno': fileno, |
|
690 | 'fileno': fileno, | |
@@ -696,7 +696,7 b' def _diffstattmplgen(context, tmpl, ctx,' | |||||
696 |
|
696 | |||
697 | def diffstat(tmpl, ctx, statgen, parity): |
|
697 | def diffstat(tmpl, ctx, statgen, parity): | |
698 | '''Return a diffstat template for each file in the diff.''' |
|
698 | '''Return a diffstat template for each file in the diff.''' | |
699 |
args = ( |
|
699 | args = (ctx, statgen, parity) | |
700 | return templateutil.mappedgenerator(_diffstattmplgen, args=args) |
|
700 | return templateutil.mappedgenerator(_diffstattmplgen, args=args) | |
701 |
|
701 | |||
702 | class sessionvars(templateutil.wrapped): |
|
702 | class sessionvars(templateutil.wrapped): |
General Comments 0
You need to be logged in to leave comments.
Login now