--- a/mercurial/setdiscovery.py Wed Apr 10 17:36:37 2019 -0700
+++ b/mercurial/setdiscovery.py Thu Apr 11 18:10:07 2019 +0200
@@ -160,6 +160,11 @@
self._undecided = set(self._common.missingancestors(self._targetheads))
return self._undecided
+ def stats(self):
+ return {
+ 'undecided': len(self.undecided),
+ }
+
def commonheads(self):
"""the heads of the known common set"""
# heads(common) == heads(common.bases) since common represents
@@ -339,8 +344,10 @@
roundtrips += 1
progress.update(roundtrips)
+ stats = disco.stats()
ui.debug("query %i; still undecided: %i, sample size is: %i\n"
- % (roundtrips, len(disco.undecided), len(sample)))
+ % (roundtrips, stats['undecided'], len(sample)))
+
# indices between sample and externalized version must match
sample = list(sample)