Mercurial > hg
changeset 25533:4bdf6f58aee1
revsetbenchmarks: clarify comment based on irc discussion
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 12 Jun 2015 16:42:07 -0400 |
parents | 1311aee85dcf |
children | 43e5a6819aba |
files | contrib/revsetbenchmarks.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/revsetbenchmarks.py Thu Jun 11 10:55:02 2015 -0700 +++ b/contrib/revsetbenchmarks.py Fri Jun 12 16:42:07 2015 -0400 @@ -95,7 +95,10 @@ def idxwidth(nbidx): """return the max width of number used for index - Yes, this is basically a log10.""" + This is similar to log10(nbidx), but we use custom code here + because we start with zero and we'd rather not deal with all the + extra rounding business that log10 would imply. + """ nbidx -= 1 # starts at 0 idxwidth = 0 while nbidx: