diff mercurial/configitems.py @ 50804:7f8f6fe13fa9

configitems: move blackbox's config items to the new configitems.toml In order for the Rust code to gain access to default values of in-core extensions that have a Rust implementation, we need to centralize them alongside the core items declarations. This is the first and so far only one of the extensions that have gained Rust support, I don't think it's worth the churn to move the rest of the extension's configitems yet.
author Rapha?l Gom?s <rgomes@octobus.net>
date Wed, 05 Jul 2023 23:59:22 +0200
parents c51b178b0b7e
children 9c5bd485fbb6
line wrap: on
line diff
--- a/mercurial/configitems.py	Mon Feb 13 18:11:48 2023 +0100
+++ b/mercurial/configitems.py	Wed Jul 05 23:59:22 2023 +0200
@@ -59,6 +59,7 @@
         priority=0,
         experimental=False,
         documentation="",
+        in_core_extension=None,
     ):
         self.section = section
         self.name = name
@@ -69,6 +70,7 @@
         self.priority = priority
         self.experimental = experimental
         self._re = None
+        self.in_core_extension = in_core_extension
         if generic:
             self._re = re.compile(self.name)