diff mercurial/configitems.py @ 48409:0d0ce2529540

extension: add a `required` suboption to enforce the use of an extensions If `required` is set, failing to load an extensions will abort. See the test and documentation for details. Differential Revision: https://phab.mercurial-scm.org/D11822
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 26 Nov 2021 17:17:49 +0100
parents c6d44457f7e3
children c5d6c874766a
line wrap: on
line diff
--- a/mercurial/configitems.py	Mon Nov 29 13:09:04 2021 +0100
+++ b/mercurial/configitems.py	Fri Nov 26 17:17:49 2021 +0100
@@ -1286,6 +1286,12 @@
     generic=True,
 )
 coreconfigitem(
+    b'extensions',
+    b'[^:]*:required',
+    default=False,
+    generic=True,
+)
+coreconfigitem(
     b'extdata',
     b'.*',
     default=None,