Submitter | phabricator |
---|---|
Date | Nov. 9, 2019, 8:41 a.m. |
Message ID | <56b4ff19fec2a35ffa1cdcce19f19c80@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/43061/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/exchangev2.py b/mercurial/exchangev2.py --- a/mercurial/exchangev2.py +++ b/mercurial/exchangev2.py @@ -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 = []