Mercurial > public > mercurial-scm > hg-stable
diff hgext/largefiles/lfcommands.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 | 19b4a2087dfc |
children | 30863ca01c6b |
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py Fri Mar 11 22:21:43 2016 +0800 +++ b/hgext/largefiles/lfcommands.py Fri Mar 11 22:26:06 2016 +0800 @@ -99,7 +99,7 @@ lfiletohash = {} for ctx in ctxs: ui.progress(_('converting revisions'), ctx.rev(), - unit=_('revision'), total=rsrc['tip'].rev()) + unit=_('revisions'), total=rsrc['tip'].rev()) _lfconvert_addchangeset(rsrc, rdst, ctx, revmap, lfiles, normalfiles, matcher, size, lfiletohash) ui.progress(_('converting revisions'), None)