D2644: setdiscovery: remove initialsamplesize from a condition
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Sun Mar 4 14:29:19 EST 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGbf485b70d0ae: setdiscovery: remove initialsamplesize from a condition (authored by martinvonz, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D2644?vs=6556&id=6594
REVISION DETAIL
https://phab.mercurial-scm.org/D2644
AFFECTED FILES
mercurial/setdiscovery.py
CHANGE DETAILS
diff --git a/mercurial/setdiscovery.py b/mercurial/setdiscovery.py
--- a/mercurial/setdiscovery.py
+++ b/mercurial/setdiscovery.py
@@ -175,7 +175,7 @@
ui.debug("all remote heads known locally\n")
return (srvheadhashes, False, srvheadhashes,)
- if sample and len(ownheads) <= initialsamplesize and all(yesno):
+ if len(sample) == len(ownheads) and all(yesno):
ui.note(_("all local heads known remotely\n"))
ownheadhashes = dag.externalizeall(ownheads)
return (ownheadhashes, True, srvheadhashes,)
To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list