Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
28471:f106913c6a4e | 28472:70d3dc05e118 |
---|---|
92 ctx1 = parents[0] | 92 ctx1 = parents[0] |
93 lines = changedlines(ui, repo, ctx1, ctx, fns) | 93 lines = changedlines(ui, repo, ctx1, ctx, fns) |
94 rate[key] = [r + l for r, l in zip(rate.get(key, (0, 0)), lines)] | 94 rate[key] = [r + l for r, l in zip(rate.get(key, (0, 0)), lines)] |
95 | 95 |
96 state['count'] += 1 | 96 state['count'] += 1 |
97 ui.progress(_('analyzing'), state['count'], total=len(repo)) | 97 ui.progress(_('analyzing'), state['count'], total=len(repo), |
98 unit=_('revisions')) | |
98 | 99 |
99 for ctx in cmdutil.walkchangerevs(repo, m, opts, prep): | 100 for ctx in cmdutil.walkchangerevs(repo, m, opts, prep): |
100 continue | 101 continue |
101 | 102 |
102 ui.progress(_('analyzing'), None) | 103 ui.progress(_('analyzing'), None) |