evolve: ui.progress doesn't use total count if pos is None, let's drop it
authorAnton Shestakov <av6@dwimlabs.net>
Sat, 12 Mar 2016 13:45:25 +0800
changeset 1623 47a0ce11b4ca
parent 1621 05d15886aaeb
child 1624 081605c2e9b6
evolve: ui.progress doesn't use total count if pos is None, let's drop it Every other call of ui.progress that has argument #2 (named `pos`) set to None doesn't specify `total`, because it won't be used. Basically, ui.progress(action, None) is enough, when used like this it hides progress bar because the action is considered completed. So this is just a minor cleanup patch.
hgext/evolve.py
--- a/hgext/evolve.py	Fri Mar 11 23:47:59 2016 +0000
+++ b/hgext/evolve.py	Sat Mar 12 13:45:25 2016 +0800
@@ -3245,7 +3245,7 @@
         undecided.difference_update(common)
 
 
-    ui.progress(_("comparing with other"), None, total=totalnb)
+    ui.progress(_("comparing with other"), None)
     result = dag.headsetofconnecteds(common)
     ui.debug("%d total queries\n" % roundtrips)