mercurial/hgweb/hgwebdir_mod.py
changeset 5332 b0bfe087ad8a
parent 5289 ed6df6b1c29a
child 5336 24de027551c1
equal deleted inserted replaced
5331:8ee5b8129e7b 5332:b0bfe087ad8a
   137             parity = paritygen(self.stripecount)
   137             parity = paritygen(self.stripecount)
   138             for name, path in self.repos:
   138             for name, path in self.repos:
   139                 u = ui.ui(parentui=parentui)
   139                 u = ui.ui(parentui=parentui)
   140                 try:
   140                 try:
   141                     u.readconfig(os.path.join(path, '.hg', 'hgrc'))
   141                     u.readconfig(os.path.join(path, '.hg', 'hgrc'))
   142                 except IOError:
   142                 except Exception, e:
   143                     pass
   143                     u.warn(_('error reading %s/.hg/hgrc: %s\n' % (path, e)))
       
   144                     continue
   144                 def get(section, name, default=None):
   145                 def get(section, name, default=None):
   145                     return u.config(section, name, default, untrusted=True)
   146                     return u.config(section, name, default, untrusted=True)
   146 
   147 
   147                 if u.configbool("web", "hidden", untrusted=True):
   148                 if u.configbool("web", "hidden", untrusted=True):
   148                     continue
   149                     continue