##// END OF EJS Templates
branchcache: use update_disk to refresh 'served' and 'served.hidden'...
marmoute -
r52389:79a7616a default
parent child Browse files
Show More
@@ -2923,10 +2923,9 b' class localrepository:'
2923
2923
2924 if repository.CACHE_BRANCHMAP_SERVED in caches:
2924 if repository.CACHE_BRANCHMAP_SERVED in caches:
2925 if tr is None or tr.changes[b'origrepolen'] < len(self):
2925 if tr is None or tr.changes[b'origrepolen'] < len(self):
2926 # accessing the 'served' branchmap should refresh all the others,
2927 self.ui.debug(b'updating the branch cache\n')
2926 self.ui.debug(b'updating the branch cache\n')
2928 self.filtered(b'served').branchmap()
2927 self._branchcaches.update_disk(self.filtered(b'served'))
2929 self.filtered(b'served.hidden').branchmap()
2928 self._branchcaches.update_disk(self.filtered(b'served.hidden'))
2930
2929
2931 if repository.CACHE_CHANGELOG_CACHE in caches:
2930 if repository.CACHE_CHANGELOG_CACHE in caches:
2932 self.changelog.update_caches(transaction=tr)
2931 self.changelog.update_caches(transaction=tr)
General Comments 0
You need to be logged in to leave comments. Login now