mercurial/revlog.py
changeset 45870 a6f08085edfe
parent 45869 63edc384d3b7
child 45942 89a2afe31e82
--- a/mercurial/revlog.py	Sat Nov 07 17:56:01 2020 +0100
+++ b/mercurial/revlog.py	Sat Nov 07 19:24:12 2020 +0100
@@ -2000,12 +2000,11 @@
         ):
             return
 
-        trinfo = tr.find(self.indexfile)
-        if trinfo is None:
+        troffset = tr.findoffset(self.indexfile)
+        if troffset is None:
             raise error.RevlogError(
                 _(b"%s not found in the transaction") % self.indexfile
             )
-        troffset = trinfo[1]
         trindex = 0
         tr.add(self.datafile, 0)