Patchwork D7356: index: use `index.has_node` in `infinitypush`

login
register
mail settings
Submitter phabricator
Date Nov. 9, 2019, 8:42 a.m.
Message ID <bcee124a5df29a954abf0961f0459330@localhost.localdomain>
Download mbox | patch
Permalink /patch/43066/
State Not Applicable
Headers show

Comments

phabricator - Nov. 9, 2019, 8:42 a.m.
Closed by commit rHGd4a485aa76fc: index: use `index.has_node` in `infinitypush` (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7356?vs=17857&id=17882

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7356/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7356

AFFECTED FILES
  hgext/infinitepush/__init__.py

CHANGE DETAILS




To: marmoute, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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 @@ 
     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)