diff -r 8d3c2f9d4af7 -r 24be247a13b4 mercurial/revlog.py --- a/mercurial/revlog.py Mon May 03 12:22:36 2021 +0200 +++ b/mercurial/revlog.py Mon May 03 12:22:47 2021 +0200 @@ -329,12 +329,10 @@ self._datafile = datafile self.nodemap_file = None self.postfix = postfix + self.opener = opener if persistentnodemap: - self.nodemap_file = nodemaputil.get_nodemap_file( - opener, self._indexfile - ) - - self.opener = opener + self.nodemap_file = nodemaputil.get_nodemap_file(self) + assert target[0] in ALL_KINDS assert len(target) == 2 self.target = target