changeset 51035:6ccb07b9eeeb

revlog: skip opener options to pass debug_delta value We can directly set the option in the config object now.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 10 Oct 2023 10:02:53 +0200
parents a11179fb6bd9
children 83ce99f5e7f2
files mercurial/localrepo.py mercurial/revlog.py
diffstat 2 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Tue Oct 10 10:02:45 2023 +0200
+++ b/mercurial/localrepo.py	Tue Oct 10 10:02:53 2023 +0200
@@ -1096,7 +1096,7 @@
         b'storage',
         b'revlog.delta-parent-search.candidate-group-chunk-size',
     )
-    options[b'debug-delta'] = ui.configbool(b'debug', b'revlog.debug-delta')
+    delta_config.debug_delta = ui.configbool(b'debug', b'revlog.debug-delta')
 
     issue6528 = ui.configbool(b'storage', b'revlog.issue6528.fix-incoming')
     options[b'issue6528.fix-incoming'] = issue6528
--- a/mercurial/revlog.py	Tue Oct 10 10:02:45 2023 +0200
+++ b/mercurial/revlog.py	Tue Oct 10 10:02:53 2023 +0200
@@ -634,8 +634,6 @@
             self.delta_config.lazy_delta = bool(opts[b'lazydelta'])
         if self._lazydelta and b'lazydeltabase' in opts:
             self.delta_config.lazy_delta_base = opts[b'lazydeltabase']
-        if b'debug-delta' in opts:
-            self.delta_config.debug_delta = opts[b'debug-delta']
         if b'compengine' in opts:
             self.feature_config.compression_engine = opts[b'compengine']
         comp_engine_opts = self.feature_config.compression_engine_options