mercurial/hgweb/hgwebdir_mod.py
changeset 6913 580d5e6bfc1f
parent 6908 b77c25c2d6c0
child 6945 2cfdabe235fb
equal deleted inserted replaced
6912:b92baef99ebf 6913:580d5e6bfc1f
   170 
   170 
   171                 u = ui.ui(parentui=self.parentui)
   171                 u = ui.ui(parentui=self.parentui)
   172                 try:
   172                 try:
   173                     u.readconfig(os.path.join(path, '.hg', 'hgrc'))
   173                     u.readconfig(os.path.join(path, '.hg', 'hgrc'))
   174                 except Exception, e:
   174                 except Exception, e:
   175                     u.warn(_('error reading %s/.hg/hgrc: %s\n' % (path, e)))
   175                     u.warn(_('error reading %s/.hg/hgrc: %s\n') % (path, e))
   176                     continue
   176                     continue
   177                 def get(section, name, default=None):
   177                 def get(section, name, default=None):
   178                     return u.config(section, name, default, untrusted=True)
   178                     return u.config(section, name, default, untrusted=True)
   179 
   179 
   180                 if u.configbool("web", "hidden", untrusted=True):
   180                 if u.configbool("web", "hidden", untrusted=True):