[Updated] D11819: extensions: ignore "sub-options" when looking for extensions

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Tue Nov 30 15:12:36 UTC 2021


Closed by commit rHGc6d44457f7e3: extensions: ignore "sub-options" when looking for extensions (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11819?vs=31190&id=31206

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11819/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11819

AFFECTED FILES
  mercurial/configitems.py
  mercurial/extensions.py

CHANGE DETAILS

diff --git a/mercurial/extensions.py b/mercurial/extensions.py
--- a/mercurial/extensions.py
+++ b/mercurial/extensions.py
@@ -282,6 +282,7 @@
     result = ui.configitems(b"extensions")
     if whitelist is not None:
         result = [(k, v) for (k, v) in result if k in whitelist]
+    result = [(k, v) for (k, v) in result if b':' not in k]
     newindex = len(_order)
     ui.log(
         b'extension',
diff --git a/mercurial/configitems.py b/mercurial/configitems.py
--- a/mercurial/configitems.py
+++ b/mercurial/configitems.py
@@ -1281,7 +1281,7 @@
 )
 coreconfigitem(
     b'extensions',
-    b'.*',
+    b'[^:]*',
     default=None,
     generic=True,
 )



To: marmoute, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211130/9d9b9090/attachment-0002.html>


More information about the Mercurial-patches mailing list