mercurial/setdiscovery.py
changeset 17191 5884812686f7
parent 16834 cafd8a8fb713
child 17204 4feb55e6931f
equal deleted inserted replaced
17190:d99d0b559084 17191:5884812686f7
    98     roundtrips += 1
    98     roundtrips += 1
    99     ownheads = dag.heads()
    99     ownheads = dag.heads()
   100     sample = ownheads
   100     sample = ownheads
   101     if remote.local():
   101     if remote.local():
   102         # stopgap until we have a proper localpeer that supports batch()
   102         # stopgap until we have a proper localpeer that supports batch()
   103         srvheadhashes = phases.visibleheads(remote)
   103         srvheadhashes = phases.visibleheads(remote.local())
   104         yesno = remote.known(dag.externalizeall(sample))
   104         yesno = remote.known(dag.externalizeall(sample))
   105     elif remote.capable('batch'):
   105     elif remote.capable('batch'):
   106         batch = remote.batch()
   106         batch = remote.batch()
   107         srvheadhashesref = batch.heads()
   107         srvheadhashesref = batch.heads()
   108         yesnoref = batch.known(dag.externalizeall(sample))
   108         yesnoref = batch.known(dag.externalizeall(sample))