Show More
@@ -323,6 +323,9 b' class localrepository(object):' | |||
|
323 | 323 | maxchainlen = self.ui.configint('format', 'maxchainlen') |
|
324 | 324 | if maxchainlen is not None: |
|
325 | 325 | self.svfs.options['maxchainlen'] = maxchainlen |
|
326 | manifestcachesize = self.ui.configint('format', 'manifestcachesize') | |
|
327 | if manifestcachesize is not None: | |
|
328 | self.svfs.options['manifestcachesize'] = manifestcachesize | |
|
326 | 329 | |
|
327 | 330 | def _writerequirements(self): |
|
328 | 331 | reqfile = self.vfs("requires", "w") |
@@ -220,9 +220,14 b' def _parse(lines):' | |||
|
220 | 220 | |
|
221 | 221 | class manifest(revlog.revlog): |
|
222 | 222 | def __init__(self, opener): |
|
223 |
# we expect to deal with not more than four |
|
|
224 | # during a commit --amend | |
|
225 | self._mancache = util.lrucachedict(4) | |
|
223 | # During normal operations, we expect to deal with not more than four | |
|
224 | # revs at a time (such as during commit --amend). When rebasing large | |
|
225 | # stacks of commits, the number can go up, hence the config knob below. | |
|
226 | cachesize = 4 | |
|
227 | opts = getattr(opener, 'options', None) | |
|
228 | if opts is not None: | |
|
229 | cachesize = opts.get('manifestcachesize', cachesize) | |
|
230 | self._mancache = util.lrucachedict(cachesize) | |
|
226 | 231 | revlog.revlog.__init__(self, opener, "00manifest.i") |
|
227 | 232 | |
|
228 | 233 | def readdelta(self, node): |
General Comments 0
You need to be logged in to leave comments.
Login now