[PATCH 1 of 2 stable] verify: provide unit to ui.makeprogress()

Anton Shestakov av6 at dwimlabs.net
Wed Nov 14 12:41:50 UTC 2018


# HG changeset patch
# User Anton Shestakov <av6 at dwimlabs.net>
# Date 1542179222 -28800
#      Wed Nov 14 15:07:02 2018 +0800
# Branch stable
# Node ID d19f768a91641e8a30a6dc862ae44ef0abbe224f
# Parent  8239d4e5d05f5452d66e4ae1ffc2f58e0d0fbd0d
# EXP-Topic progress-unit
verify: provide unit to ui.makeprogress()

diff --git a/mercurial/verify.py b/mercurial/verify.py
--- a/mercurial/verify.py
+++ b/mercurial/verify.py
@@ -302,7 +302,8 @@ class verifier(object):
         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()


More information about the Mercurial-devel mailing list