Mercurial > hg
changeset 43546:a166fadf5c3b
index: use `index.has_node` in `exchangev2._pullchangesetdiscovery`
Differential Revision: https://phab.mercurial-scm.org/D7348
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 08 Nov 2019 13:25:25 +0100 |
parents | 9c1f4e2f1fc4 |
children | 2b5d07702f94 |
files | mercurial/exchangev2.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/exchangev2.py Fri Nov 08 16:00:47 2019 +0100 +++ b/mercurial/exchangev2.py Fri Nov 08 13:25:25 2019 +0100 @@ -291,9 +291,9 @@ # See the comment in exchange._pulldiscoverychangegroup() for more. if fetch and remoteheads: - nodemap = repo.unfiltered().changelog.nodemap + has_node = repo.unfiltered().changelog.index.has_node - common |= {head for head in remoteheads if head in nodemap} + common |= {head for head in remoteheads if has_node(head)} if set(remoteheads).issubset(common): fetch = []