mercurial/localrepo.py
changeset 51041 e2941c398f10
parent 51040 8ed03f773eac
child 51101 1c0f3994d733
--- a/mercurial/localrepo.py	Tue Oct 10 10:03:58 2023 +0200
+++ b/mercurial/localrepo.py	Tue Oct 10 10:04:06 2023 +0200
@@ -1125,14 +1125,15 @@
         ui.config(b'experimental', b'sparse-read.density-threshold')
     )
     srmingapsize = ui.configbytes(b'experimental', b'sparse-read.min-gap-size')
-    options[b'with-sparse-read'] = withsparseread
-    options[b'sparse-read-density-threshold'] = srdensitythres
-    options[b'sparse-read-min-gap-size'] = srmingapsize
+    data_config.with_sparse_read = withsparseread
+    data_config.sr_density_threshold = srdensitythres
+    data_config.sr_min_gap_size = srmingapsize
 
     sparserevlog = requirementsmod.SPARSEREVLOG_REQUIREMENT in requirements
     delta_config.sparse_revlog = sparserevlog
     if sparserevlog:
         options[b'generaldelta'] = True
+        data_config.with_sparse_read = True
 
     maxchainlen = None
     if sparserevlog: