Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/hgwebdir_mod.py @ 44245:bf23d6ee7ec7 stable
config: also respect HGRCSKIPREPO in hgwebdir_mod
Differential Revision: https://phab.mercurial-scm.org/D8074
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 04 Feb 2020 12:07:42 +0100 |
parents | 71582c5ad00f |
children | 91aa9bba3dc9 |
comparison
equal
deleted
inserted
replaced
44244:ef11dfc56674 | 44245:bf23d6ee7ec7 |
---|---|
33 extensions, | 33 extensions, |
34 hg, | 34 hg, |
35 pathutil, | 35 pathutil, |
36 profiling, | 36 profiling, |
37 pycompat, | 37 pycompat, |
38 rcutil, | |
38 registrar, | 39 registrar, |
39 scmutil, | 40 scmutil, |
40 templater, | 41 templater, |
41 templateutil, | 42 templateutil, |
42 ui as uimod, | 43 ui as uimod, |
190 seendirs.add(name) | 191 seendirs.add(name) |
191 yield row | 192 yield row |
192 continue | 193 continue |
193 | 194 |
194 u = ui.copy() | 195 u = ui.copy() |
195 try: | 196 if rcutil.use_repo_hgrc(): |
196 u.readconfig(os.path.join(path, b'.hg', b'hgrc')) | 197 try: |
197 except Exception as e: | 198 u.readconfig(os.path.join(path, b'.hg', b'hgrc')) |
198 u.warn(_(b'error reading %s/.hg/hgrc: %s\n') % (path, e)) | 199 except Exception as e: |
199 continue | 200 u.warn(_(b'error reading %s/.hg/hgrc: %s\n') % (path, e)) |
201 continue | |
200 | 202 |
201 def get(section, name, default=uimod._unset): | 203 def get(section, name, default=uimod._unset): |
202 return u.config(section, name, default, untrusted=True) | 204 return u.config(section, name, default, untrusted=True) |
203 | 205 |
204 if u.configbool(b"web", b"hidden", untrusted=True): | 206 if u.configbool(b"web", b"hidden", untrusted=True): |