Show More
@@ -162,9 +162,8 b' def showdescription(repo, ctx, templ, **' | |||
|
162 | 162 | return ctx.description().strip() |
|
163 | 163 | |
|
164 | 164 | def showdiffstat(repo, ctx, templ, **args): |
|
165 | diff = patch.diff(repo, ctx.parents()[0].node(), ctx.node()) | |
|
166 | 165 | files, adds, removes = 0, 0, 0 |
|
167 | for i in patch.diffstatdata(util.iterlines(diff)): | |
|
166 | for i in patch.diffstatdata(util.iterlines(ctx.diff())): | |
|
168 | 167 | files += 1 |
|
169 | 168 | adds += i[1] |
|
170 | 169 | removes += i[2] |
General Comments 0
You need to be logged in to leave comments.
Login now