diffstat: print 0 instead of nothing for 0 adds or removes
This is in line with how the stock diffstat behaves when processing a
single diff with no line modifications (like a binary diff).
--- a/mercurial/patch.py Sat Oct 24 12:29:39 2009 +0200
+++ b/mercurial/patch.py Sun Oct 25 02:35:35 2009 +0200
@@ -1407,8 +1407,8 @@
for filename, adds, removes in stats:
pluses = '+' * scale(adds)
minuses = '-' * scale(removes)
- output.append(' %-*s | %*.d %s%s\n' % (maxname, filename, countwidth,
- adds+removes, pluses, minuses))
+ output.append(' %-*s | %*s %s%s\n' % (maxname, filename, countwidth,
+ adds+removes, pluses, minuses))
if stats:
output.append(_(' %d files changed, %d insertions(+), %d deletions(-)\n')