##// END OF EJS Templates
manifestlog: also monitor `00manifest.n` when applicable...
marmoute -
r48854:7970895a stable
parent child Browse files
Show More
@@ -159,6 +159,21 b' class changelogcache(storecache):'
159 return paths
159 return paths
160
160
161
161
162 class manifestlogcache(storecache):
163 """filecache for the manifestlog"""
164
165 def __init__(self):
166 super(manifestlogcache, self).__init__()
167 _cachedfiles.add((b'00manifest.i', b''))
168 _cachedfiles.add((b'00manifest.n', b''))
169
170 def tracked_paths(self, obj):
171 paths = [self.join(obj, b'00manifest.i')]
172 if obj.store.opener.options.get(b'persistent-nodemap', False):
173 paths.append(self.join(obj, b'00manifest.n'))
174 return paths
175
176
162 class mixedrepostorecache(_basefilecache):
177 class mixedrepostorecache(_basefilecache):
163 """filecache for a mix files in .hg/store and outside"""
178 """filecache for a mix files in .hg/store and outside"""
164
179
@@ -1697,7 +1712,7 b' class localrepository(object):'
1697 concurrencychecker=revlogchecker.get_checker(repo.ui, b'changelog'),
1712 concurrencychecker=revlogchecker.get_checker(repo.ui, b'changelog'),
1698 )
1713 )
1699
1714
1700 @storecache(b'00manifest.i')
1715 @manifestlogcache()
1701 def manifestlog(self):
1716 def manifestlog(self):
1702 return self.store.manifestlog(self, self._storenarrowmatch)
1717 return self.store.manifestlog(self, self._storenarrowmatch)
1703
1718
General Comments 0
You need to be logged in to leave comments. Login now