Mercurial > hg
changeset 31946:f3b80537a70d
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.
author | Gábor Stefanik <gabor.stefanik@nng.com> |
---|---|
date | Mon, 10 Apr 2017 18:16:30 +0200 |
parents | 02c3b1f396de |
children | 6c08dfd19e0b |
files | mercurial/util.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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