Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/hgwebdir_mod.py @ 5336:24de027551c1
Merge with crew-stable
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 24 Sep 2007 19:14:18 -0300 |
parents | 05889b6b1468 b0bfe087ad8a |
children | 22713dce19f6 d2831a5d5947 |
comparison
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 |