updatecaches: also warm revbranchcache for filtered revisions
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 11 Mar 2019 02:32:21 +0100
changeset 41938 2eee280a1354
parent 41937 7694b685bb10
child 41939 481259af4bdf
updatecaches: also warm revbranchcache for filtered revisions We are in the "full" case, so we better warm everything we can.
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()