Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 38744:ae17555ef93f stable
config: rename `revlog` section into `storage`
The idea was suggested by Gregory Szorc on IRC. It is more generic and seems
better. It is probably best to rename the section before it ever makes into an
official (non-rc) release.
The only config option currently in this section have been prefixed with
`revlog` to clarify it applies to `revlog` related storage.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 20 Jul 2018 09:08:20 +0200 |
parents | 913ca175c4ae |
children | 17da52bbadb0 |
comparison
equal
deleted
inserted
replaced
38743:10d40c83205b | 38744:ae17555ef93f |
---|---|
666 self.svfs.options['maxchainlen'] = maxchainlen | 666 self.svfs.options['maxchainlen'] = maxchainlen |
667 # experimental config: format.manifestcachesize | 667 # experimental config: format.manifestcachesize |
668 manifestcachesize = self.ui.configint('format', 'manifestcachesize') | 668 manifestcachesize = self.ui.configint('format', 'manifestcachesize') |
669 if manifestcachesize is not None: | 669 if manifestcachesize is not None: |
670 self.svfs.options['manifestcachesize'] = manifestcachesize | 670 self.svfs.options['manifestcachesize'] = manifestcachesize |
671 deltabothparents = self.ui.configbool('revlog', | 671 deltabothparents = self.ui.configbool('storage', |
672 'optimize-delta-parent-choice') | 672 'revlog.optimize-delta-parent-choice') |
673 self.svfs.options['deltabothparents'] = deltabothparents | 673 self.svfs.options['deltabothparents'] = deltabothparents |
674 self.svfs.options['lazydeltabase'] = not scmutil.gddeltaconfig(self.ui) | 674 self.svfs.options['lazydeltabase'] = not scmutil.gddeltaconfig(self.ui) |
675 chainspan = self.ui.configbytes('experimental', 'maxdeltachainspan') | 675 chainspan = self.ui.configbytes('experimental', 'maxdeltachainspan') |
676 if 0 <= chainspan: | 676 if 0 <= chainspan: |
677 self.svfs.options['maxdeltachainspan'] = chainspan | 677 self.svfs.options['maxdeltachainspan'] = chainspan |