comparison mercurial/hgweb/hgwebdir_mod.py @ 52447:0a81f3ef054c

config: move `rcutil` module under a new `mercurial.configuration` module This new module aims at gathering configuration related code, rcutil definitely deserves to live there.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 21 Oct 2024 13:39:44 +0200
parents f4733654f144
children 24ee91ba9aa8
comparison
equal deleted inserted replaced
52446:4eec920bbb37 52447:0a81f3ef054c
33 extensions, 33 extensions,
34 hg, 34 hg,
35 pathutil, 35 pathutil,
36 profiling, 36 profiling,
37 pycompat, 37 pycompat,
38 rcutil,
39 registrar, 38 registrar,
40 scmutil, 39 scmutil,
41 templater, 40 templater,
42 templateutil, 41 templateutil,
43 ui as uimod, 42 ui as uimod,
48 hgweb_mod, 47 hgweb_mod,
49 request as requestmod, 48 request as requestmod,
50 webutil, 49 webutil,
51 wsgicgi, 50 wsgicgi,
52 ) 51 )
52 from ..configuration import rcutil
53 from ..utils import dateutil 53 from ..utils import dateutil
54 54
55 55
56 def cleannames(items): 56 def cleannames(items):
57 return [(util.pconvert(name).strip(b'/'), path) for name, path in items] 57 return [(util.pconvert(name).strip(b'/'), path) for name, path in items]