Mercurial > public > mercurial-scm > hg
diff hgext/largefiles/lfutil.py @ 28464:6e34690230c0
largefiles: use revisions as a ui.progress unit
Using plural form is consistent with other progress units, and "1 out of 5
revisions" sounds more correct. Also, tests don't show this, but if you have
'speed' item in progress.format config, it shows e.g. '100 revisions/sec',
which also seems better.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 11 Mar 2016 22:26:06 +0800 |
parents | 571ba161f6be |
children | bfbd3f02b442 |
line wrap: on
line diff
--- a/hgext/largefiles/lfutil.py Fri Mar 11 22:21:43 2016 +0800 +++ b/hgext/largefiles/lfutil.py Fri Mar 11 22:26:06 2016 +0800 @@ -468,7 +468,7 @@ def getlfilestoupload(repo, missing, addfunc): for i, n in enumerate(missing): repo.ui.progress(_('finding outgoing largefiles'), i, - unit=_('revision'), total=len(missing)) + unit=_('revisions'), total=len(missing)) parents = [p for p in repo.changelog.parents(n) if p != node.nullid] oldlfstatus = repo.lfstatus