[PATCH 09 of 11] churn: specify unit for ui.progress when analyzing revisions

Anton Shestakov av6 at dwimlabs.net
Fri Mar 11 09:57:41 EST 2016


# HG changeset patch
# User Anton Shestakov <av6 at dwimlabs.net>
# Date 1457706629 -28800
#      Fri Mar 11 22:30:29 2016 +0800
# Node ID 121bf926133b31daad362653c50082068e730f04
# Parent  df1bf309225aa967bd2214401f9dd96b060081ec
churn: specify unit for ui.progress when analyzing revisions

diff --git a/hgext/churn.py b/hgext/churn.py
--- a/hgext/churn.py
+++ b/hgext/churn.py
@@ -94,7 +94,8 @@ def countrate(ui, repo, amap, *pats, **o
             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


More information about the Mercurial-devel mailing list