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