churn: specify unit for ui.progress when analyzing revisions
authorAnton Shestakov <av6@dwimlabs.net>
Fri, 11 Mar 2016 22:30:29 +0800
changeset 28472 70d3dc05e118
parent 28471 f106913c6a4e
child 28473 61d1a3cc6e1c
churn: specify unit for ui.progress when analyzing revisions
hgext/churn.py
--- 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