diff hgext/evolve.py @ 1623:47a0ce11b4ca

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.
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 12 Mar 2016 13:45:25 +0800
parents ce268aebd0f5
children 081605c2e9b6
line wrap: on
line diff
--- 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)