##// END OF EJS Templates
setdiscovery: use iterbatch interface instead of batch...
Augie Fackler -
r28437:c3eacee0 default
parent child Browse files
Show More
@@ -147,12 +147,11 b' def findcommonheads(ui, local, remote,'
147 147 sample = _limitsample(ownheads, initialsamplesize)
148 148 # indices between sample and externalized version must match
149 149 sample = list(sample)
150 batch = remote.batch()
151 srvheadhashesref = batch.heads()
152 yesnoref = batch.known(dag.externalizeall(sample))
150 batch = remote.iterbatch()
151 batch.heads()
152 batch.known(dag.externalizeall(sample))
153 153 batch.submit()
154 srvheadhashes = srvheadhashesref.value
155 yesno = yesnoref.value
154 srvheadhashes, yesno = batch.results()
156 155
157 156 if cl.tip() == nullid:
158 157 if srvheadhashes != [nullid]:
General Comments 0
You need to be logged in to leave comments. Login now