Skip to content
Snippets Groups Projects
Commit b0bfe087 authored by Alexis S. L. Carvalho's avatar Alexis S. L. Carvalho
Browse files

hgwebdir: ignore hgrc parse errors while building the index page

An error in the .hg/hgrc file from a repository would prevent the
following repos from being shown in the index page.

The IOError handling was unnecessary - it's already handled in
readconfig.

This should fix issue731.

The error in the .hg/hgrc file will still prevent the repo from
being exported with hgweb.
parent 8ee5b812
No related branches found
No related tags found
No related merge requests found
......@@ -139,8 +139,9 @@
u = ui.ui(parentui=parentui)
try:
u.readconfig(os.path.join(path, '.hg', 'hgrc'))
except IOError:
pass
except Exception, e:
u.warn(_('error reading %s/.hg/hgrc: %s\n' % (path, e)))
continue
def get(section, name, default=None):
return u.config(section, name, default, untrusted=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment