Mercurial > public > mercurial-scm > hg
comparison mercurial/configitems.py @ 50762: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 |
comparison
equal
deleted
inserted
replaced
50761:8ff187fbbfea | 50762:7f8f6fe13fa9 |
---|---|
57 alias=(), | 57 alias=(), |
58 generic=False, | 58 generic=False, |
59 priority=0, | 59 priority=0, |
60 experimental=False, | 60 experimental=False, |
61 documentation="", | 61 documentation="", |
62 in_core_extension=None, | |
62 ): | 63 ): |
63 self.section = section | 64 self.section = section |
64 self.name = name | 65 self.name = name |
65 self.default = default | 66 self.default = default |
66 self.documentation = documentation | 67 self.documentation = documentation |
67 self.alias = list(alias) | 68 self.alias = list(alias) |
68 self.generic = generic | 69 self.generic = generic |
69 self.priority = priority | 70 self.priority = priority |
70 self.experimental = experimental | 71 self.experimental = experimental |
71 self._re = None | 72 self._re = None |
73 self.in_core_extension = in_core_extension | |
72 if generic: | 74 if generic: |
73 self._re = re.compile(self.name) | 75 self._re = re.compile(self.name) |
74 | 76 |
75 | 77 |
76 class itemregister(dict): | 78 class itemregister(dict): |