mercurial/hgweb/hgwebdir_mod.py
branchstable
changeset 44162 bf23d6ee7ec7
parent 43991 71582c5ad00f
child 45235 91aa9bba3dc9
equal deleted inserted replaced
44161:ef11dfc56674 44162: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):