hgext3rd/evolve/stablerangecache.py
changeset 4341 d1aab9d82f5b
parent 4137 21a3c051ca6c
child 4487 d972041022cb
--- a/hgext3rd/evolve/stablerangecache.py	Fri Jan 11 09:26:41 2019 -0800
+++ b/hgext3rd/evolve/stablerangecache.py	Mon Jan 14 09:14:38 2019 -0800
@@ -21,6 +21,7 @@
 )
 
 from . import (
+    compat,
     exthelper,
     genericcaches,
     stablerange,
@@ -97,8 +98,8 @@
                         warned_long = True
                     if (1 < progress_each) and (0.1 < progress_new - progress_last):
                         progress_each /= 10
-                    ui.progress(_("filling stablerange cache"), seen,
-                                total=total, unit=_("changesets"))
+                    compat.progress(ui, _("filling stablerange cache"), seen,
+                                    total=total, unit=_("changesets"))
                     progress_last = progress_new
                 seen += 1
                 original.remove(rangeid) # might have been added from other source
@@ -107,7 +108,7 @@
                 for sub in self.subranges(repo, rangeid):
                     if self._getsub(sub) is None:
                         heappush(rangeheap, sub)
-        ui.progress(_("filling stablerange cache"), None, total=total)
+        compat.progress(ui, _("filling stablerange cache"), None, total=total)
 
     def clear(self, reset=False):
         super(stablerangeondiskbase, self).clear()