[PATCH 04 of 11] repair: specify unit for ui.progress in rebuildfncache()

Anton Shestakov av6 at dwimlabs.net
Fri Mar 11 09:57:36 EST 2016


# HG changeset patch
# User Anton Shestakov <av6 at dwimlabs.net>
# Date 1457700280 -28800
#      Fri Mar 11 20:44:40 2016 +0800
# Node ID d6936961010f003f4e12aba4830804b9b403a7b9
# Parent  bf528141b517d279b6d14b1da482e0b70ea58e11
repair: specify unit for ui.progress in rebuildfncache()

diff --git a/mercurial/repair.py b/mercurial/repair.py
--- a/mercurial/repair.py
+++ b/mercurial/repair.py
@@ -254,7 +254,8 @@ def rebuildfncache(ui, repo):
 
         repolen = len(repo)
         for rev in repo:
-            ui.progress(_('rebuilding'), rev, total=repolen)
+            ui.progress(_('rebuilding'), rev, total=repolen,
+                        unit=_('changesets'))
 
             ctx = repo[rev]
             for f in ctx.files():


More information about the Mercurial-devel mailing list