Show More
@@ -192,10 +192,11 b' class locallegacypeer(localpeer):' | |||
|
192 | 192 | |
|
193 | 193 | class localrepository(object): |
|
194 | 194 | |
|
195 |
supportedformats = set(('revlogv1', 'generaldelta', 'manifest |
|
|
195 | supportedformats = set(('revlogv1', 'generaldelta', 'treemanifest', | |
|
196 | 'manifestv2')) | |
|
196 | 197 | _basesupported = supportedformats | set(('store', 'fncache', 'shared', |
|
197 | 198 | 'dotencode')) |
|
198 | openerreqs = set(('revlogv1', 'generaldelta', 'manifestv2')) | |
|
199 | openerreqs = set(('revlogv1', 'generaldelta', 'treemanifest', 'manifestv2')) | |
|
199 | 200 | filtername = None |
|
200 | 201 | |
|
201 | 202 | # a list of (ui, featureset) functions. |
@@ -259,6 +260,8 b' class localrepository(object):' | |||
|
259 | 260 | ) |
|
260 | 261 | if self.ui.configbool('format', 'generaldelta', False): |
|
261 | 262 | self.requirements.add("generaldelta") |
|
263 | if self.ui.configbool('experimental', 'treemanifest', False): | |
|
264 | self.requirements.add("treemanifest") | |
|
262 | 265 | if self.ui.configbool('experimental', 'manifestv2', False): |
|
263 | 266 | self.requirements.add("manifestv2") |
|
264 | 267 | else: |
@@ -348,9 +351,6 b' class localrepository(object):' | |||
|
348 | 351 | manifestcachesize = self.ui.configint('format', 'manifestcachesize') |
|
349 | 352 | if manifestcachesize is not None: |
|
350 | 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 | 355 | def _writerequirements(self): |
|
356 | 356 | scmutil.writerequires(self.vfs, self.requirements) |
@@ -760,7 +760,7 b' class manifest(revlog.revlog):' | |||
|
760 | 760 | opts = getattr(opener, 'options', None) |
|
761 | 761 | if opts is not None: |
|
762 | 762 | cachesize = opts.get('manifestcachesize', cachesize) |
|
763 |
usetreemanifest = opts.get(' |
|
|
763 | usetreemanifest = opts.get('treemanifest', usetreemanifest) | |
|
764 | 764 | usemanifestv2 = opts.get('manifestv2', usemanifestv2) |
|
765 | 765 | self._mancache = util.lrucachedict(cachesize) |
|
766 | 766 | revlog.revlog.__init__(self, opener, "00manifest.i") |
General Comments 0
You need to be logged in to leave comments.
Login now