Show More
@@ -223,10 +223,12 b' def diffstat(tmpl, ctx, parity):' | |||||
223 | return 0 |
|
223 | return 0 | |
224 | return (float(i) / maxtotal) * 100 |
|
224 | return (float(i) / maxtotal) * 100 | |
225 |
|
225 | |||
|
226 | fileno = 0 | |||
226 | for filename, adds, removes, isbinary in stats: |
|
227 | for filename, adds, removes, isbinary in stats: | |
227 | template = filename in files and 'diffstatlink' or 'diffstatnolink' |
|
228 | template = filename in files and 'diffstatlink' or 'diffstatnolink' | |
228 | total = adds + removes |
|
229 | total = adds + removes | |
229 | yield tmpl(template, node=ctx.hex(), file=filename, |
|
230 | fileno += 1 | |
|
231 | yield tmpl(template, node=ctx.hex(), file=filename, fileno=fileno, | |||
230 | total=total, addpct=pct(adds), removepct=pct(removes), |
|
232 | total=total, addpct=pct(adds), removepct=pct(removes), | |
231 | parity=parity.next()) |
|
233 | parity=parity.next()) | |
232 |
|
234 |
General Comments 0
You need to be logged in to leave comments.
Login now