mercurial/setdiscovery.py
changeset 15713 cff25e4b37d2
parent 15497 9bea3aed6ee1
child 16683 525fdb738975
--- a/mercurial/setdiscovery.py	Thu Dec 22 00:40:46 2011 +0100
+++ b/mercurial/setdiscovery.py	Thu Dec 22 00:42:25 2011 +0100
@@ -9,6 +9,7 @@
 from node import nullid
 from i18n import _
 import random, collections, util, dagutil
+import phases
 
 def _updatesample(dag, nodes, sample, always, quicksamplesize=0):
     # if nodes is empty we scan the entire graph
@@ -99,7 +100,7 @@
     sample = ownheads
     if remote.local():
         # stopgap until we have a proper localpeer that supports batch()
-        srvheadhashes = remote.heads()
+        srvheadhashes = phases.visibleheads(remote)
         yesno = remote.known(dag.externalizeall(sample))
     elif remote.capable('batch'):
         batch = remote.batch()