evolve: fix progress display with hg<4.7
Since d1aab9d82f5b (evolve: adapt for deprecated ui.progress(),
2019-01-14), the "item", "units" and "total" are all set to default
values. The last one is especially bad since it results in a "spinner"
instead of a progress bar.
--- a/CHANGELOG Sat Apr 20 05:21:14 2019 +0200
+++ b/CHANGELOG Mon Apr 22 22:14:26 2019 -0700
@@ -7,6 +7,7 @@
* evolve: make sure we use upstream merge code with 5.0,
* evolve: restore compatibility with 4.4
(This regress the narrow compatibility)
+ * evolve: fix progress display with hg <= 4.6
* topic: compatibility with mercurial-5.0,
* topic: improve extensions isolation (issue6121).
--- a/hgext3rd/evolve/compat.py Sat Apr 20 05:21:14 2019 +0200
+++ b/hgext3rd/evolve/compat.py Mon Apr 22 22:14:26 2019 -0700
@@ -67,7 +67,7 @@
progress.complete()
else:
def progress(ui, topic, pos, item="", unit="", total=None):
- ui.progress(topic, pos, item="", unit="", total=None)
+ ui.progress(topic, pos, item, unit, total)
# XXX: Better detection of property cache
if 'predecessors' not in dir(obsolete.obsstore):