--- a/hgext/churn.py Fri Jun 27 14:53:30 2008 -0500
+++ b/hgext/churn.py Fri Jun 27 18:28:45 2008 -0500
@@ -92,14 +92,12 @@
alias, actual = l.split()
amap[alias] = actual
- revs = [int(r) for r in cmdutil.revrange(repo, opts['rev'])]
- revs.sort()
+ revs = util.sort([int(r) for r in cmdutil.revrange(repo, opts['rev'])])
stats = countrevs(ui, repo, amap, revs, opts.get('progress'))
if not stats:
return
- stats = [(-l, u, l) for u,l in stats.items()]
- stats.sort()
+ stats = util.sort([(-l, u, l) for u,l in stats.items()])
maxchurn = float(max(1, stats[0][2]))
maxuser = max([len(u) for k, u, l in stats])