diff mercurial/localrepo.py @ 51042:027bc364524b

revlog: skip opener options to pass mmap_index_threshold 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:03:50 +0200
parents 683b96c416d8
children 8ed03f773eac
line wrap: on
line diff
--- a/mercurial/localrepo.py	Tue Oct 10 10:03:42 2023 +0200
+++ b/mercurial/localrepo.py	Tue Oct 10 10:03:50 2023 +0200
@@ -1118,7 +1118,7 @@
 
     mmapindexthreshold = ui.configbytes(b'experimental', b'mmapindexthreshold')
     if mmapindexthreshold is not None:
-        options[b'mmapindexthreshold'] = mmapindexthreshold
+        data_config.mmap_index_threshold = mmapindexthreshold
 
     withsparseread = ui.configbool(b'experimental', b'sparse-read')
     srdensitythres = float(