# HG changeset patch # User Augie Fackler # Date 2018-10-13 13:47:53 # Node ID 12e2e5cd577792b6123ce2158736cb5130731970 # Parent 8cf459d8b11186870adddc37b7a738cdca3b504b churn: remove redundant round() To my surprise, the int() is required. Spotted by Mads when he reviewed D5063. Thanks! Differential Revision: https://phab.mercurial-scm.org/D5086 diff --git a/hgext/churn.py b/hgext/churn.py --- a/hgext/churn.py +++ b/hgext/churn.py @@ -205,7 +205,7 @@ def churn(ui, repo, *pats, **opts): '*' * charnum(sum(count))) def charnum(count): - return int(round(count * width // maxcount)) + return int(count * width // maxcount) for name, count in rate: ui.write(format(name, count))