diff mercurial/ui.py @ 52457:22129ce9f86d

config: include the component level when returning them This will be useful when modifying them.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 23 Oct 2024 01:32:33 +0200
parents 0a81f3ef054c
children 8986a3a8147a
line wrap: on
line diff
--- a/mercurial/ui.py	Wed Oct 23 00:43:17 2024 +0200
+++ b/mercurial/ui.py	Wed Oct 23 01:32:33 2024 +0200
@@ -335,7 +335,7 @@
         """Create a ui and load global and user configs"""
         u = cls()
         # we always trust global config files and environment variables
-        for t, f in rcutil.rccomponents():
+        for _lvl, t, f in rcutil.rccomponents():
             if t == b'path':
                 u.readconfig(f, trust=True)
             elif t == b'resource':