churn: specify unit for ui.progress when analyzing revisions

This commit is contained in:
Anton Shestakov 2016-03-11 22:30:29 +08:00
parent 67f0dab5d3
commit a65379c3ff

View File

@ -94,7 +94,8 @@ def countrate(ui, repo, amap, *pats, **opts):
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