# HG changeset patch # User Martin von Zweigbergk # Date 1555996466 25200 # Node ID 393a58d71b30d3c3b3304cce58ae804cee6e091e # Parent a1072c2910c25e511fbf05857a93e631283c975a 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. diff -r a1072c2910c2 -r 393a58d71b30 CHANGELOG --- 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). diff -r a1072c2910c2 -r 393a58d71b30 hgext3rd/evolve/compat.py --- 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):