util: fix human-readable printing of negative byte counts
Apply the same human-readable printing rules to negative byte counts as to
positive ones. Fixes output of debugupgraderepo.
--- a/mercurial/util.py Thu Apr 13 03:17:53 2017 -0700
+++ b/mercurial/util.py Mon Apr 10 18:16:30 2017 +0200
@@ -2161,7 +2161,7 @@
def go(count):
for multiplier, divisor, format in unittable:
- if count >= divisor * multiplier:
+ if abs(count) >= divisor * multiplier:
return format % (count / float(divisor))
return unittable[-1][2] % count