mercurial/setdiscovery.py
changeset 36716 bf485b70d0ae
parent 36715 613954a17a25
child 36717 0968e400406c
--- a/mercurial/setdiscovery.py	Sun Mar 04 07:37:08 2018 -0800
+++ b/mercurial/setdiscovery.py	Sun Mar 04 07:39:46 2018 -0800
@@ -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,)