diff -r 30f458fc59e9 -r 8ec2de9c6770 mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py Thu Oct 19 03:07:39 2023 +0200 +++ b/mercurial/bundlerepo.py Thu Oct 19 03:33:59 2023 +0200 @@ -147,8 +147,11 @@ iterrev = rev # reconstruct the revision if it is from a changegroup while iterrev > self.repotiprev: - if self._revisioncache and self._revisioncache[1] == iterrev: - rawtext = self._revisioncache[2] + if ( + self._inner._revisioncache + and self._inner._revisioncache[1] == iterrev + ): + rawtext = self._inner._revisioncache[2] break chain.append(iterrev) iterrev = self.index[iterrev][3]