stablerange: include units in ui.progress() calls
authorAnton Shestakov <av6@dwimlabs.net>
Thu, 12 Apr 2018 13:28:30 +0800
changeset 3658 4a456d9132e3
parent 3657 b36e38e3a176
child 3659 1e9b535cd9be
stablerange: include units in ui.progress() calls
hgext3rd/evolve/stablerange.py
--- 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