Patchwork D7340: index: use `index.rev` in `bundlerepo.bundlerevlog`

login
register
mail settings
Submitter phabricator
Date Nov. 9, 2019, 3:58 p.m.
Message ID <720b47f2e60ea088b92dc2e9578b26ae@localhost.localdomain>
Download mbox | patch
Permalink /patch/43084/
State Not Applicable
Headers show

Comments

phabricator - Nov. 9, 2019, 3:58 p.m.
Closed by commit rHG21b8c599b675: index: use `index.rev` in `bundlerepo.bundlerevlog` (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/D7340?vs=17846&id=17901

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

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

AFFECTED FILES
  mercurial/bundlerepo.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/bundlerepo.py b/mercurial/bundlerepo.py
--- a/mercurial/bundlerepo.py
+++ b/mercurial/bundlerepo.py
@@ -66,7 +66,7 @@ 
             link = linkmapper(cs)
             if self.index.has_node(node):
                 # this can happen if two branches make the same change
-                self.bundlerevs.add(self.nodemap[node])
+                self.bundlerevs.add(self.index.rev(node))
                 continue
 
             for p in (p1, p2):