hgext/infinitepush/__init__.py
changeset 43550 a936a3455bb1
parent 43506 9f70512ae2cf
child 45144 c93dd9d9f1e6
--- 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)