--- a/mercurial/localrepo.py Sat Feb 29 19:31:33 2020 +0100
+++ b/mercurial/localrepo.py Tue Feb 18 19:11:13 2020 +0100
@@ -2504,6 +2504,9 @@
if full:
unfi = self.unfiltered()
+
+ self.changelog.update_caches(transaction=tr)
+
rbc = unfi.revbranchcache()
for r in unfi.changelog:
rbc.branchinfo(r)