Mercurial > hg
comparison mercurial/revlog.py @ 41819:688fc33e105d
storage: introduce a `revlog.reuse-external-delta` config
This option goes a bit further and provides a way to get the same behavior as the
`re-delta-all` optimisation from `hg debugupgraderepo`.
The effect of the option is a bit hard to test as we do not have multiple diff
algorithm at hand. However, we at least make sure the code path run.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 27 Feb 2019 12:40:18 +0100 |
parents | 37ead13fb3d4 |
children | afd37ed731f1 |
comparison
equal
deleted
inserted
replaced
41818:f6eff9e4de80 | 41819:688fc33e105d |
---|---|
408 self._chunkcachesize = opts['chunkcachesize'] | 408 self._chunkcachesize = opts['chunkcachesize'] |
409 if 'maxchainlen' in opts: | 409 if 'maxchainlen' in opts: |
410 self._maxchainlen = opts['maxchainlen'] | 410 self._maxchainlen = opts['maxchainlen'] |
411 if 'deltabothparents' in opts: | 411 if 'deltabothparents' in opts: |
412 self._deltabothparents = opts['deltabothparents'] | 412 self._deltabothparents = opts['deltabothparents'] |
413 self._lazydeltabase = bool(opts.get('lazydeltabase', False)) | 413 self._lazydelta = bool(opts.get('lazydelta', True)) |
414 self._lazydeltabase = False | |
415 if self._lazydelta: | |
416 self._lazydeltabase = bool(opts.get('lazydeltabase', False)) | |
414 if 'compengine' in opts: | 417 if 'compengine' in opts: |
415 self._compengine = opts['compengine'] | 418 self._compengine = opts['compengine'] |
416 if 'maxdeltachainspan' in opts: | 419 if 'maxdeltachainspan' in opts: |
417 self._maxdeltachainspan = opts['maxdeltachainspan'] | 420 self._maxdeltachainspan = opts['maxdeltachainspan'] |
418 if self._mmaplargeindex and 'mmapindexthreshold' in opts: | 421 if self._mmaplargeindex and 'mmapindexthreshold' in opts: |