comparison mercurial/configuration/command.py @ 52426: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 3e79ca017157
children 8c509a70b6fa
comparison
equal deleted inserted replaced
52425:3e79ca017157 52426:22129ce9f86d
109 """show the component used to build the config 109 """show the component used to build the config
110 110
111 XXX this skip over various source and ignore the repository config, so it 111 XXX this skip over various source and ignore the repository config, so it
112 XXX is probably useless old code. 112 XXX is probably useless old code.
113 """ 113 """
114 for t, f in rcutil.rccomponents(): 114 for _lvl, t, f in rcutil.rccomponents():
115 if t == b'path': 115 if t == b'path':
116 ui.debug(b'read config from: %s\n' % f) 116 ui.debug(b'read config from: %s\n' % f)
117 elif t == b'resource': 117 elif t == b'resource':
118 ui.debug(b'read config from: resource:%s.%s\n' % (f[0], f[1])) 118 ui.debug(b'read config from: resource:%s.%s\n' % (f[0], f[1]))
119 elif t == b'items': 119 elif t == b'items':