diff mercurial/verify.py @ 40616:d2ff0af6e959 stable

verify: provide unit to ui.makeprogress()
author Anton Shestakov <av6@dwimlabs.net>
date Wed, 14 Nov 2018 15:07:02 +0800
parents fec944719324
children a58748300e61
line wrap: on
line diff
--- a/mercurial/verify.py	Tue Nov 13 19:47:48 2018 -0500
+++ b/mercurial/verify.py	Wed Nov 14 15:07:02 2018 +0800
@@ -302,7 +302,8 @@
         ui.status(_("crosschecking files in changesets and manifests\n"))
 
         total = len(filelinkrevs) + len(filenodes)
-        progress = ui.makeprogress(_('crosschecking'), total=total)
+        progress = ui.makeprogress(_('crosschecking'), unit=_('files'),
+                                   total=total)
         if self.havemf:
             for f in sorted(filelinkrevs):
                 progress.increment()