Mercurial > hg
diff contrib/shrink-revlog.py @ 10282:08a0f04b56bd
many, many trivial check-code fixups
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 25 Jan 2010 00:05:27 -0600 |
parents | 4b2a086bee31 |
children | b39b32c33269 |
line wrap: on
line diff
--- a/contrib/shrink-revlog.py Mon Jan 25 00:05:22 2010 -0600 +++ b/contrib/shrink-revlog.py Mon Jan 25 00:05:27 2010 -0600 @@ -101,9 +101,9 @@ # argh: have to pass an int to %d, because a float >= 2^32 # blows up under Python 2.5 or earlier ui.write('old file size: %12d bytes (%6.1f MiB)\n' - % (int(oldsize), oldsize/1024/1024)) + % (int(oldsize), oldsize / 1024 / 1024)) ui.write('new file size: %12d bytes (%6.1f MiB)\n' - % (int(newsize), newsize/1024/1024)) + % (int(newsize), newsize / 1024 / 1024)) shrink_percent = (oldsize - newsize) / oldsize * 100 shrink_factor = oldsize / newsize @@ -219,4 +219,4 @@ } if __name__ == "__main__": - print "shrink-revlog.py is now an extension (see hg help extensions)" + print "shrink-revlog.py is now an extension (see hg help extensions)"