diff mercurial/localrepo.py @ 51043:8ed03f773eac

revlog: skip opener options to pass sparse_revlog 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:58 +0200
parents 027bc364524b
children e2941c398f10
line wrap: on
line diff
--- a/mercurial/localrepo.py	Tue Oct 10 10:03:50 2023 +0200
+++ b/mercurial/localrepo.py	Tue Oct 10 10:03:58 2023 +0200
@@ -1130,7 +1130,7 @@
     options[b'sparse-read-min-gap-size'] = srmingapsize
 
     sparserevlog = requirementsmod.SPARSEREVLOG_REQUIREMENT in requirements
-    options[b'sparse-revlog'] = sparserevlog
+    delta_config.sparse_revlog = sparserevlog
     if sparserevlog:
         options[b'generaldelta'] = True