index: use `index.rev` in `bundlerepo.bundlerevlog`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sat, 09 Nov 2019 13:23:53 +0100
changeset 43564 698e11f7be6a
parent 43563 4d8a4ecbb8b9
child 43565 f212cc5ffceb
index: use `index.rev` in `bundlerepo.bundlerevlog` Differential Revision: https://phab.mercurial-scm.org/D7340
mercurial/bundlerepo.py
--- a/mercurial/bundlerepo.py	Sat Nov 09 13:23:53 2019 +0100
+++ b/mercurial/bundlerepo.py	Sat Nov 09 13:23:53 2019 +0100
@@ -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):