equal
deleted
inserted
replaced
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)) |