##// END OF EJS Templates
index: use `index.has_node` in `exchangev2._pullchangesetdiscovery`...
marmoute -
r43852:e461d2e6 default draft
parent child Browse files
Show More
@@ -291,9 +291,9 b' def _pullchangesetdiscovery(repo, remote'
291 # See the comment in exchange._pulldiscoverychangegroup() for more.
291 # See the comment in exchange._pulldiscoverychangegroup() for more.
292
292
293 if fetch and remoteheads:
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 if set(remoteheads).issubset(common):
298 if set(remoteheads).issubset(common):
299 fetch = []
299 fetch = []
General Comments 0
You need to be logged in to leave comments. Login now