changeset 3658:4a456d9132e3

stablerange: include units in ui.progress() calls
author Anton Shestakov <av6@dwimlabs.net>
date Thu, 12 Apr 2018 13:28:30 +0800
parents b36e38e3a176
children 1e9b535cd9be
files hgext3rd/evolve/stablerange.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/stablerange.py	Fri Apr 06 20:00:43 2018 +0530
+++ b/hgext3rd/evolve/stablerange.py	Thu Apr 12 13:28:30 2018 +0800
@@ -608,7 +608,8 @@
         rangeheap = []
         for idx, r in enumerate(revs):
             if not idx % 1000:
-                ui.progress(_("filling depth cache"), idx, total=nbrevs)
+                ui.progress(_("filling depth cache"), idx, total=nbrevs,
+                            unit=_("changesets"))
             # warm up depth
             self.depthrev(repo, r)
             rangeheap.append((-r, (r, 0)))
@@ -633,7 +634,8 @@
                     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=nbrevs)
+                    ui.progress(_("filling stablerange cache"), seen,
+                                total=nbrevs, unit=_("changesets"))
                     progress_last = progress_new
                 seen += 1
                 original.remove(value) # might have been added from other source