Show More
@@ -138,22 +138,12 b' def findcommonheads(ui, local, remote,' | |||||
138 | sample = _limitsample(ownheads, initialsamplesize) |
|
138 | sample = _limitsample(ownheads, initialsamplesize) | |
139 | # indices between sample and externalized version must match |
|
139 | # indices between sample and externalized version must match | |
140 | sample = list(sample) |
|
140 | sample = list(sample) | |
141 | if remote.local(): |
|
|||
142 | # stopgap until we have a proper localpeer that supports batch() |
|
|||
143 | srvheadhashes = remote.heads() |
|
|||
144 | yesno = remote.known(dag.externalizeall(sample)) |
|
|||
145 | elif remote.capable('batch'): |
|
|||
146 |
|
|
141 | batch = remote.batch() | |
147 |
|
|
142 | srvheadhashesref = batch.heads() | |
148 |
|
|
143 | yesnoref = batch.known(dag.externalizeall(sample)) | |
149 |
|
|
144 | batch.submit() | |
150 |
|
|
145 | srvheadhashes = srvheadhashesref.value | |
151 |
|
|
146 | yesno = yesnoref.value | |
152 | else: |
|
|||
153 | # compatibility with pre-batch, but post-known remotes during 1.9 |
|
|||
154 | # development |
|
|||
155 | srvheadhashes = remote.heads() |
|
|||
156 | sample = [] |
|
|||
157 |
|
147 | |||
158 | if cl.tip() == nullid: |
|
148 | if cl.tip() == nullid: | |
159 | if srvheadhashes != [nullid]: |
|
149 | if srvheadhashes != [nullid]: |
General Comments 0
You need to be logged in to leave comments.
Login now