changeset 1590:aca2495425a6

evolve: add progress for the obsmarkers discovery parts
author timeless@mozdev.org
date Wed, 09 Sep 2015 19:43:14 -0400
parents 083220acba01
children 625b75a01196
files README hgext/evolve.py
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/README
+++ b/README
@@ -51,9 +51,10 @@
 Changelog
 =========
 
-5.2.0 --
+5.3.0 --
 
 - split: add a new command to split changesets
+- add some progress data during changesets discovery
 
 5.2.0 -- 2015-06-25
 
--- a/hgext/evolve.py
+++ b/hgext/evolve.py
@@ -3022,6 +3022,8 @@
     missing = set()
     common = set()
     undecided = set(probeset)
+    totalnb = len(undecided)
+    ui.progress("comparing with other", 0, total=totalnb)
     _takefullsample = setdiscovery._takefullsample
     if remote.capable('_evoext_obshash_1'):
         getremotehash = remote.evoext_obshash1
@@ -3039,6 +3041,8 @@
             sample = _takefullsample(dag, undecided, size=fullsamplesize)
 
         roundtrips += 1
+        ui.progress("comparing with other", totalnb - len(undecided),
+                    total=totalnb)
         ui.debug("query %i; still undecided: %i, sample size is: %i\n"
                  % (roundtrips, len(undecided), len(sample)))
         # indices between sample and externalized version must match
@@ -3058,6 +3062,7 @@
         undecided.difference_update(common)
 
 
+    ui.progress("comparing with other", None, total=totalnb)
     result = dag.headsetofconnecteds(common)
     ui.debug("%d total queries\n" % roundtrips)