##// END OF EJS Templates
treemanifest: set requires at repo creation time, ignore config after...
Martin von Zweigbergk -
r24956:48583a1e default
parent child Browse files
Show More
@@ -192,10 +192,11 b' class locallegacypeer(localpeer):'
192
192
193 class localrepository(object):
193 class localrepository(object):
194
194
195 supportedformats = set(('revlogv1', 'generaldelta', 'manifestv2'))
195 supportedformats = set(('revlogv1', 'generaldelta', 'treemanifest',
196 'manifestv2'))
196 _basesupported = supportedformats | set(('store', 'fncache', 'shared',
197 _basesupported = supportedformats | set(('store', 'fncache', 'shared',
197 'dotencode'))
198 'dotencode'))
198 openerreqs = set(('revlogv1', 'generaldelta', 'manifestv2'))
199 openerreqs = set(('revlogv1', 'generaldelta', 'treemanifest', 'manifestv2'))
199 filtername = None
200 filtername = None
200
201
201 # a list of (ui, featureset) functions.
202 # a list of (ui, featureset) functions.
@@ -259,6 +260,8 b' class localrepository(object):'
259 )
260 )
260 if self.ui.configbool('format', 'generaldelta', False):
261 if self.ui.configbool('format', 'generaldelta', False):
261 self.requirements.add("generaldelta")
262 self.requirements.add("generaldelta")
263 if self.ui.configbool('experimental', 'treemanifest', False):
264 self.requirements.add("treemanifest")
262 if self.ui.configbool('experimental', 'manifestv2', False):
265 if self.ui.configbool('experimental', 'manifestv2', False):
263 self.requirements.add("manifestv2")
266 self.requirements.add("manifestv2")
264 else:
267 else:
@@ -348,9 +351,6 b' class localrepository(object):'
348 manifestcachesize = self.ui.configint('format', 'manifestcachesize')
351 manifestcachesize = self.ui.configint('format', 'manifestcachesize')
349 if manifestcachesize is not None:
352 if manifestcachesize is not None:
350 self.svfs.options['manifestcachesize'] = manifestcachesize
353 self.svfs.options['manifestcachesize'] = manifestcachesize
351 usetreemanifest = self.ui.configbool('experimental', 'treemanifest')
352 if usetreemanifest is not None:
353 self.svfs.options['usetreemanifest'] = usetreemanifest
354
354
355 def _writerequirements(self):
355 def _writerequirements(self):
356 scmutil.writerequires(self.vfs, self.requirements)
356 scmutil.writerequires(self.vfs, self.requirements)
@@ -760,7 +760,7 b' class manifest(revlog.revlog):'
760 opts = getattr(opener, 'options', None)
760 opts = getattr(opener, 'options', None)
761 if opts is not None:
761 if opts is not None:
762 cachesize = opts.get('manifestcachesize', cachesize)
762 cachesize = opts.get('manifestcachesize', cachesize)
763 usetreemanifest = opts.get('usetreemanifest', usetreemanifest)
763 usetreemanifest = opts.get('treemanifest', usetreemanifest)
764 usemanifestv2 = opts.get('manifestv2', usemanifestv2)
764 usemanifestv2 = opts.get('manifestv2', usemanifestv2)
765 self._mancache = util.lrucachedict(cachesize)
765 self._mancache = util.lrucachedict(cachesize)
766 revlog.revlog.__init__(self, opener, "00manifest.i")
766 revlog.revlog.__init__(self, opener, "00manifest.i")
General Comments 0
You need to be logged in to leave comments. Login now