--- 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()