Show More
@@ -153,11 +153,11 b' def churn(ui, repo, *pats, **opts):' | |||||
153 | if not rate: |
|
153 | if not rate: | |
154 | return |
|
154 | return | |
155 |
|
155 | |||
156 |
|
|
156 | sortfn = ((not opts.get('sort')) and (lambda a, b: cmp(b[1], a[1])) or None) | |
157 | rate.sort(key=keyfn, reverse=not opts.get('sort')) |
|
157 | rate.sort(sortfn) | |
158 |
|
158 | |||
159 | maxcount = float(max(v for k, v in rate)) |
|
159 | maxcount = float(max([v for k, v in rate])) | |
160 | maxname = max(len(k) for k, v in rate) |
|
160 | maxname = max([len(k) for k, v in rate]) | |
161 |
|
161 | |||
162 | ttywidth = get_tty_width() |
|
162 | ttywidth = get_tty_width() | |
163 | ui.debug(_("assuming %i character terminal\n") % ttywidth) |
|
163 | ui.debug(_("assuming %i character terminal\n") % ttywidth) |
General Comments 0
You need to be logged in to leave comments.
Login now