diff -r 77a9c7d8a7ba -r f0e07efc199f mercurial/localrepo.py --- a/mercurial/localrepo.py Wed Sep 25 01:16:47 2024 -0400 +++ b/mercurial/localrepo.py Sun Sep 22 15:55:46 2024 +0200 @@ -77,6 +77,10 @@ wireprototypes, ) +from .branching import ( + rev_cache as rev_branch_cache, +) + from .interfaces import ( repository, util as interfaceutil, @@ -2281,7 +2285,8 @@ @unfilteredmethod def revbranchcache(self): if not self._revbranchcache: - self._revbranchcache = branchmap.revbranchcache(self.unfiltered()) + unfi = self.unfiltered() + self._revbranchcache = rev_branch_cache.revbranchcache(unfi) return self._revbranchcache def register_changeset(self, rev, changelogrevision):