equal
deleted
inserted
replaced
263 """String. Statistics of changes with the following format: |
263 """String. Statistics of changes with the following format: |
264 "modified files: +added/-removed lines" |
264 "modified files: +added/-removed lines" |
265 """ |
265 """ |
266 ui = context.resource(mapping, 'ui') |
266 ui = context.resource(mapping, 'ui') |
267 ctx = context.resource(mapping, 'ctx') |
267 ctx = context.resource(mapping, 'ctx') |
268 diffopts = diffutil.diffopts(ui, {'noprefix': False}) |
268 diffopts = diffutil.diffallopts(ui, {'noprefix': False}) |
269 diff = ctx.diff(opts=diffopts) |
269 diff = ctx.diff(opts=diffopts) |
270 stats = patch.diffstatdata(util.iterlines(diff)) |
270 stats = patch.diffstatdata(util.iterlines(diff)) |
271 maxname, maxtotal, adds, removes, binary = patch.diffstatsum(stats) |
271 maxname, maxtotal, adds, removes, binary = patch.diffstatsum(stats) |
272 return '%d: +%d/-%d' % (len(stats), adds, removes) |
272 return '%d: +%d/-%d' % (len(stats), adds, removes) |
273 |
273 |