[PATCH 1 of 5 "] updatecaches: also warm revbranchcache for filtered revisions

Pierre-Yves David pierre-yves.david at ens-lyon.org
Mon Mar 11 05:24:00 EDT 2019


# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at octobus.net>
# Date 1552267941 -3600
#      Mon Mar 11 02:32:21 2019 +0100
# Node ID c081522ea066709de26be0b61c5553f095b1fd6d
# Parent  e82c932c01e30121a10580e5caaeca78fec34008
# EXP-Topic fnodecache
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r c081522ea066
updatecaches: also warm revbranchcache for filtered revisions

We are in the "full" case, so we better warm everything we can.

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -2085,8 +2085,9 @@ class localrepository(object):
             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()
 


More information about the Mercurial-devel mailing list