comparison mercurial/localrepo.py @ 34520:ca5b833ce756

configitems: register the 'experimental.mmapindexthreshold' config
author Boris Feld <boris.feld@octobus.net>
date Sun, 08 Oct 2017 20:43:46 +0200
parents 0314e02efa25
children ee5f0d047b41
comparison
equal deleted inserted replaced
34519:0314e02efa25 34520:ca5b833ce756
603 self.svfs.options['lazydeltabase'] = not scmutil.gddeltaconfig(self.ui) 603 self.svfs.options['lazydeltabase'] = not scmutil.gddeltaconfig(self.ui)
604 chainspan = self.ui.configbytes('experimental', 'maxdeltachainspan') 604 chainspan = self.ui.configbytes('experimental', 'maxdeltachainspan')
605 if 0 <= chainspan: 605 if 0 <= chainspan:
606 self.svfs.options['maxdeltachainspan'] = chainspan 606 self.svfs.options['maxdeltachainspan'] = chainspan
607 mmapindexthreshold = self.ui.configbytes('experimental', 607 mmapindexthreshold = self.ui.configbytes('experimental',
608 'mmapindexthreshold', None) 608 'mmapindexthreshold')
609 if mmapindexthreshold is not None: 609 if mmapindexthreshold is not None:
610 self.svfs.options['mmapindexthreshold'] = mmapindexthreshold 610 self.svfs.options['mmapindexthreshold'] = mmapindexthreshold
611 611
612 for r in self.requirements: 612 for r in self.requirements:
613 if r.startswith('exp-compression-'): 613 if r.startswith('exp-compression-'):