mercurial/hgweb/hgwebdir_mod.py
changeset 5336 24de027551c1
parent 5290 05889b6b1468
parent 5332 b0bfe087ad8a
equal deleted inserted replaced
5328:8d00788ca578 5336:24de027551c1
   144                 name = name[len(subdir):]
   144                 name = name[len(subdir):]
   145 
   145 
   146                 u = ui.ui(parentui=parentui)
   146                 u = ui.ui(parentui=parentui)
   147                 try:
   147                 try:
   148                     u.readconfig(os.path.join(path, '.hg', 'hgrc'))
   148                     u.readconfig(os.path.join(path, '.hg', 'hgrc'))
   149                 except IOError:
   149                 except Exception, e:
   150                     pass
   150                     u.warn(_('error reading %s/.hg/hgrc: %s\n' % (path, e)))
       
   151                     continue
   151                 def get(section, name, default=None):
   152                 def get(section, name, default=None):
   152                     return u.config(section, name, default, untrusted=True)
   153                     return u.config(section, name, default, untrusted=True)
   153 
   154 
   154                 if u.configbool("web", "hidden", untrusted=True):
   155                 if u.configbool("web", "hidden", untrusted=True):
   155                     continue
   156                     continue