[PATCH 1 of 2 evolve-ext] evolve: ui.progress doesn't use total count if pos is None, let's drop it

Anton Shestakov av6 at dwimlabs.net
Mon Mar 14 13:05:36 UTC 2016


# HG changeset patch
# User Anton Shestakov <av6 at dwimlabs.net>
# Date 1457761525 -28800
#      Sat Mar 12 13:45:25 2016 +0800
# Node ID d6da1b74e4520055e39765fb74ae8ae2090a3ed0
# Parent  97d98b8d9068baa9d072c1a5660818219e86516d
evolve: ui.progress doesn't use total count if pos is None, let's drop it

diff --git a/hgext/evolve.py b/hgext/evolve.py
--- a/hgext/evolve.py
+++ b/hgext/evolve.py
@@ -3245,7 +3245,7 @@ def findcommonobsmarkers(ui, local, remo
         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)
 


More information about the Mercurial-devel mailing list