changeset 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 7589f2c9c3c7
children e5f54c4ec075
files mercurial/verify.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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()