evolve: clean up progress bar also when using -r
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 23 Apr 2019 09:31:32 -0700
changeset 4597 f3236cd49ab8
parent 4596 78d60913ea9f
child 4598 2c094d4ee9cd
evolve: clean up progress bar also when using -r It looks like 1fe3da0b4601 (evolve: add --rev option to the evolve command, 2015-05-05) forgot to update the "showprogress" variable.
hgext3rd/evolve/evolvecmd.py
--- a/hgext3rd/evolve/evolvecmd.py	Tue Apr 23 10:20:03 2019 -0700
+++ b/hgext3rd/evolve/evolvecmd.py	Tue Apr 23 09:31:32 2019 -0700
@@ -1649,10 +1649,10 @@
     # Progress handling
     seen = 1
     count = allopt and len(troubled) or 1
-    showprogress = allopt
+    showprogress = allopt or revopt
 
     def progresscb():
-        if revopt or allopt:
+        if showprogress:
             compat.progress(ui, _('evolve'), seen, unit=_('changesets'), total=count)
 
     evolvestate = state.cmdstate(repo)