# HG changeset patch # User Pierre-Yves David # Date 1573229304 -3600 # Node ID a936a3455bb1805981a247a017afca92240440d7 # Parent 4cb3f5bb29ec102eeedc8370b34ba1a725b80945 index: use `index.has_node` in `infinitypush` Differential Revision: https://phab.mercurial-scm.org/D7356 diff -r 4cb3f5bb29ec -r a936a3455bb1 hgext/infinitepush/__init__.py --- a/hgext/infinitepush/__init__.py Fri Nov 08 13:26:33 2019 +0100 +++ b/hgext/infinitepush/__init__.py Fri Nov 08 17:08:24 2019 +0100 @@ -548,7 +548,7 @@ allbundlestocleanup = [] try: for head in heads: - if head not in repo.changelog.nodemap: + if not repo.changelog.index.has_node(head): if head not in nodestobundle: newbundlefile = common.downloadbundle(repo, head) bundlepath = b"bundle:%s+%s" % (repo.root, newbundlefile)