index: use `index.has_node` in `infinitypush`
Differential Revision: https://phab.mercurial-scm.org/D7356
--- 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)