Patchwork D2644: setdiscovery: remove initialsamplesize from a condition

login
register
mail settings
Submitter phabricator
Date March 4, 2018, 7:29 p.m.
Message ID <11279612122f9445c6f013e0744df1ea@localhost.localdomain>
Download mbox | patch
Permalink /patch/28971/
State Not Applicable
Headers show

Comments

phabricator - March 4, 2018, 7:29 p.m.
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




To: martinvonz, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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,)