Mercurial > hg
comparison mercurial/localrepo.py @ 38737:913ca175c4ae
aggressivemergedelta: document rename and move to `revlog` section
The config does not follow our naming guideline and "Aggressive" is probably a
word to keep away from users.
The option does not truly fit in the `format` section. It can be turned on and
off for existing repository without much consequence regarding compatibility.
A new `revlog` option is created to control behavior related to revlog writing
and reading. We can see multiple other config options that could be migrated
there.
* format.maxchainlen
* experimental.mmapindexthreshold
* experimental.sparse-read.density-threshold (in an updated form)
* experimental.sparse-read.min-gap-size (in an updated form)
In addition, we can foresee at least a couple of sparse-revlog related option
coming too (to reduce delta chain length and increase snapshot reuse)
These two extra options might fit there too. Unless we want to create a
section dedicated to caches and performance.
* format.chunkcachesize
* format.manifestcachesize
For now, we only migrate `optimize-delta-parent-choice` since it is getting
out of experimental. It is too close to the release to move the other one. In
addition, we still lack proper the prioritization of alias that would help
renaming them without bad consequence for users.
(Not fully happy about the `revlog` name but could not find better).
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Thu, 19 Jul 2018 10:35:29 +0200 |
parents | 93777d16a25d |
children | ae17555ef93f |
comparison
equal
deleted
inserted
replaced
38736:93777d16a25d | 38737:913ca175c4ae |
---|---|
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 # experimental config: format.aggressivemergedeltas | 671 deltabothparents = self.ui.configbool('revlog', |
672 deltabothparents = self.ui.configbool('format', | 672 'optimize-delta-parent-choice') |
673 'aggressivemergedeltas') | |
674 self.svfs.options['deltabothparents'] = deltabothparents | 673 self.svfs.options['deltabothparents'] = deltabothparents |
675 self.svfs.options['lazydeltabase'] = not scmutil.gddeltaconfig(self.ui) | 674 self.svfs.options['lazydeltabase'] = not scmutil.gddeltaconfig(self.ui) |
676 chainspan = self.ui.configbytes('experimental', 'maxdeltachainspan') | 675 chainspan = self.ui.configbytes('experimental', 'maxdeltachainspan') |
677 if 0 <= chainspan: | 676 if 0 <= chainspan: |
678 self.svfs.options['maxdeltachainspan'] = chainspan | 677 self.svfs.options['maxdeltachainspan'] = chainspan |