changeset 43550:a936a3455bb1

index: use `index.has_node` in `infinitypush` Differential Revision: https://phab.mercurial-scm.org/D7356
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 08 Nov 2019 17:08:24 +0100
parents 4cb3f5bb29ec
children 3350d7aefe67
files hgext/infinitepush/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)