##// END OF EJS Templates
index: use `index.has_node` in `exchangev2._pullchangesetdiscovery`...
marmoute -
r43946:a166fadf default
parent child Browse files
Show More
@@ -291,9 +291,9 b' def _pullchangesetdiscovery(repo, remote'
291 291 # See the comment in exchange._pulldiscoverychangegroup() for more.
292 292
293 293 if fetch and remoteheads:
294 nodemap = repo.unfiltered().changelog.nodemap
294 has_node = repo.unfiltered().changelog.index.has_node
295 295
296 common |= {head for head in remoteheads if head in nodemap}
296 common |= {head for head in remoteheads if has_node(head)}
297 297
298 298 if set(remoteheads).issubset(common):
299 299 fetch = []
General Comments 0
You need to be logged in to leave comments. Login now