# HG changeset patch # User Anton Shestakov # Date 1523510910 -28800 # Node ID 4a456d9132e34702832b61fdd8c80113866f0c30 # Parent b36e38e3a1769fb4acf1b3dadcaeec998260113f stablerange: include units in ui.progress() calls diff -r b36e38e3a176 -r 4a456d9132e3 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