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

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Sat Nov 9 00:19:35 EST 2019


marmoute updated this revision to Diff 17846.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7340?vs=17763&id=17846

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

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



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


More information about the Mercurial-devel mailing list