Patchwork [2,of,2,evolve-ext] stablerangecache: include units in ui.progress() calls

login
register
mail settings
Submitter Anton Shestakov
Date April 12, 2018, 6:21 a.m.
Message ID <b9fba41c577de088b658.1523514107@neuro>
Download mbox | patch
Permalink /patch/30772/
State Accepted
Headers show

Comments

Anton Shestakov - April 12, 2018, 6:21 a.m.
# HG changeset patch
# User Anton Shestakov <av6@dwimlabs.net>
# Date 1523511028 -28800
#      Thu Apr 12 13:30:28 2018 +0800
# Node ID b9fba41c577de088b6582cae3f8a4603afda5589
# Parent  ef38b973097170304e7d4b62c6605d84d73fcc30
stablerangecache: include units in ui.progress() calls

Patch

diff --git a/hgext3rd/evolve/stablerangecache.py b/hgext3rd/evolve/stablerangecache.py
--- a/hgext3rd/evolve/stablerangecache.py
+++ b/hgext3rd/evolve/stablerangecache.py
@@ -66,7 +66,8 @@  class stablerangeondiskbase(stablerange.
                     progress_new = time.time()
                     if (1 < progress_each) and (0.1 < progress_new - progress_last):
                         progress_each /= 10
-                    ui.progress(_("filling stablerange cache"), seen, total=total)
+                    ui.progress(_("filling stablerange cache"), seen,
+                                total=total, unit=_("changesets"))
                     progress_last = progress_new
                 seen += 1
                 original.remove(rangeid) # might have been added from other source