# HG changeset patch # User Pierre-Yves David # Date 2019-11-08 16:08:24 # Node ID d4a485aa76fc19e162c028e32dec63bd59cc8be0 # Parent 03b36cbb8f34b94d76b3fdf27c613621a50b2ebb index: use `index.has_node` in `infinitypush` Differential Revision: https://phab.mercurial-scm.org/D7356 diff --git a/hgext/infinitepush/__init__.py b/hgext/infinitepush/__init__.py --- a/hgext/infinitepush/__init__.py +++ b/hgext/infinitepush/__init__.py @@ -548,7 +548,7 @@ def getbundlechunks(orig, repo, source, 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)