# HG changeset patch # User Augie Fackler # Date 2015-06-12 20:42:07 # Node ID 4bdf6f58aee1a88dedca7c88c866ee2e5f25f3b6 # Parent 1311aee85dcfb9bf620e86c692c7243cdccf67d0 revsetbenchmarks: clarify comment based on irc discussion diff --git a/contrib/revsetbenchmarks.py b/contrib/revsetbenchmarks.py --- a/contrib/revsetbenchmarks.py +++ b/contrib/revsetbenchmarks.py @@ -95,7 +95,10 @@ def printrevision(rev): 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: