comparison 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
comparison
equal deleted inserted replaced
28463:19b4a2087dfc 28464:6e34690230c0
97 matcher = None 97 matcher = None
98 98
99 lfiletohash = {} 99 lfiletohash = {}
100 for ctx in ctxs: 100 for ctx in ctxs:
101 ui.progress(_('converting revisions'), ctx.rev(), 101 ui.progress(_('converting revisions'), ctx.rev(),
102 unit=_('revision'), total=rsrc['tip'].rev()) 102 unit=_('revisions'), total=rsrc['tip'].rev())
103 _lfconvert_addchangeset(rsrc, rdst, ctx, revmap, 103 _lfconvert_addchangeset(rsrc, rdst, ctx, revmap,
104 lfiles, normalfiles, matcher, size, lfiletohash) 104 lfiles, normalfiles, matcher, size, lfiletohash)
105 ui.progress(_('converting revisions'), None) 105 ui.progress(_('converting revisions'), None)
106 106
107 if os.path.exists(rdst.wjoin(lfutil.shortname)): 107 if os.path.exists(rdst.wjoin(lfutil.shortname)):