diff hgext/churn.py @ 28472:70d3dc05e118

churn: specify unit for ui.progress when analyzing revisions
author Anton Shestakov <av6@dwimlabs.net>
date Fri, 11 Mar 2016 22:30:29 +0800
parents 79fc627578ac
children ed1d90f6e921
line wrap: on
line diff
--- a/hgext/churn.py	Fri Mar 11 22:30:04 2016 +0800
+++ b/hgext/churn.py	Fri Mar 11 22:30:29 2016 +0800
@@ -94,7 +94,8 @@
             rate[key] = [r + l for r, l in zip(rate.get(key, (0, 0)), lines)]
 
         state['count'] += 1
-        ui.progress(_('analyzing'), state['count'], total=len(repo))
+        ui.progress(_('analyzing'), state['count'], total=len(repo),
+                    unit=_('revisions'))
 
     for ctx in cmdutil.walkchangerevs(repo, m, opts, prep):
         continue