##// END OF EJS Templates
diffstat: print 0 instead of nothing for 0 adds or removes...
Brodie Rao -
r9639:5384a22a default
parent child Browse files
Show More
@@ -1407,8 +1407,8 b' def diffstat(lines, width=80):'
1407 for filename, adds, removes in stats:
1407 for filename, adds, removes in stats:
1408 pluses = '+' * scale(adds)
1408 pluses = '+' * scale(adds)
1409 minuses = '-' * scale(removes)
1409 minuses = '-' * scale(removes)
1410 output.append(' %-*s | %*.d %s%s\n' % (maxname, filename, countwidth,
1410 output.append(' %-*s | %*s %s%s\n' % (maxname, filename, countwidth,
1411 adds+removes, pluses, minuses))
1411 adds+removes, pluses, minuses))
1412
1412
1413 if stats:
1413 if stats:
1414 output.append(_(' %d files changed, %d insertions(+), %d deletions(-)\n')
1414 output.append(_(' %d files changed, %d insertions(+), %d deletions(-)\n')
General Comments 0
You need to be logged in to leave comments. Login now