Show More
@@ -148,7 +148,8 def churn(ui, repo, *pats, **opts): | |||
|
148 | 148 | sortkey = ((not opts.get('sort')) and (lambda x: -x[1]) or None) |
|
149 | 149 | rate.sort(key=sortkey) |
|
150 | 150 | |
|
151 | maxcount = float(max([v for k, v in rate])) | |
|
151 | # Be careful not to have a zero maxcount (issue833) | |
|
152 | maxcount = float(max([v for k, v in rate])) or 1.0 | |
|
152 | 153 | maxname = max([len(k) for k, v in rate]) |
|
153 | 154 | |
|
154 | 155 | ttywidth = util.termwidth() |
General Comments 0
You need to be logged in to leave comments.
Login now