Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 41933:2eee280a1354
updatecaches: also warm revbranchcache for filtered revisions
We are in the "full" case, so we better warm everything we can.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 11 Mar 2019 02:32:21 +0100 |
parents | 94faa2e84094 |
children | 481259af4bdf |
comparison
equal
deleted
inserted
replaced
41932:7694b685bb10 | 41933:2eee280a1354 |
---|---|
2083 # accessing the 'ser ved' branchmap should refresh all the others, | 2083 # accessing the 'ser ved' branchmap should refresh all the others, |
2084 self.ui.debug('updating the branch cache\n') | 2084 self.ui.debug('updating the branch cache\n') |
2085 self.filtered('served').branchmap() | 2085 self.filtered('served').branchmap() |
2086 | 2086 |
2087 if full: | 2087 if full: |
2088 rbc = self.revbranchcache() | 2088 unfi = self.unfiltered() |
2089 for r in self.changelog: | 2089 rbc = unfi.revbranchcache() |
2090 for r in unfi.changelog: | |
2090 rbc.branchinfo(r) | 2091 rbc.branchinfo(r) |
2091 rbc.write() | 2092 rbc.write() |
2092 | 2093 |
2093 # ensure the working copy parents are in the manifestfulltextcache | 2094 # ensure the working copy parents are in the manifestfulltextcache |
2094 for ctx in self['.'].parents(): | 2095 for ctx in self['.'].parents(): |