diff -r 7694b685bb10 -r 2eee280a1354 mercurial/localrepo.py --- a/mercurial/localrepo.py Wed Feb 13 15:50:14 2019 +0530 +++ b/mercurial/localrepo.py Mon Mar 11 02:32:21 2019 +0100 @@ -2085,8 +2085,9 @@ self.filtered('served').branchmap() if full: - rbc = self.revbranchcache() - for r in self.changelog: + unfi = self.unfiltered() + rbc = unfi.revbranchcache() + for r in unfi.changelog: rbc.branchinfo(r) rbc.write()