Show More
@@ -27,6 +27,7 b' from . import (' | |||
|
27 | 27 | util, |
|
28 | 28 | ) |
|
29 | 29 | from .utils import ( |
|
30 | diffutil, | |
|
30 | 31 | stringutil, |
|
31 | 32 | ) |
|
32 | 33 | |
@@ -263,7 +264,8 b' def showdiffstat(context, mapping):' | |||
|
263 | 264 | "modified files: +added/-removed lines" |
|
264 | 265 | """ |
|
265 | 266 | ctx = context.resource(mapping, 'ctx') |
|
266 |
diff = ctx. |
|
|
267 | diffopts = diffutil.diffopts(ctx._repo.ui, {'noprefix': False}) | |
|
268 | diff = ctx.diff(opts=diffopts) | |
|
267 | 269 | stats = patch.diffstatdata(util.iterlines(diff)) |
|
268 | 270 | maxname, maxtotal, adds, removes, binary = patch.diffstatsum(stats) |
|
269 | 271 | return '%d: +%d/-%d' % (len(stats), adds, removes) |
General Comments 0
You need to be logged in to leave comments.
Login now