equal
deleted
inserted
replaced
217 stats = patch.diffstatdata(util.iterlines(ctx.diff())) |
217 stats = patch.diffstatdata(util.iterlines(ctx.diff())) |
218 maxname, maxtotal, adds, removes, binary = patch.diffstatsum(stats) |
218 maxname, maxtotal, adds, removes, binary = patch.diffstatsum(stats) |
219 return '%s: +%s/-%s' % (len(stats), adds, removes) |
219 return '%s: +%s/-%s' % (len(stats), adds, removes) |
220 |
220 |
221 def showextras(**args): |
221 def showextras(**args): |
|
222 """:extras: List of dicts with key, value entries of the 'extras' |
|
223 field of this changeset.""" |
222 templ = args['templ'] |
224 templ = args['templ'] |
223 for key, value in sorted(args['ctx'].extra().items()): |
225 for key, value in sorted(args['ctx'].extra().items()): |
224 args = args.copy() |
226 args = args.copy() |
225 args.update(dict(key=key, value=value)) |
227 args.update(dict(key=key, value=value)) |
226 yield templ('extra', **args) |
228 yield templ('extra', **args) |