changeset 43564:698e11f7be6a

index: use `index.rev` in `bundlerepo.bundlerevlog` Differential Revision: https://phab.mercurial-scm.org/D7340
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 09 Nov 2019 13:23:53 +0100
parents 4d8a4ecbb8b9
children f212cc5ffceb
files mercurial/bundlerepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):