# HG changeset patch # User Thomas Arendsen Hein # Date 2005-08-31 05:25:02 # Node ID 85555540a4e2057f051df0b1198768dc368a5f2c # Parent e388c4f5cec5cd6f86c160d37b270b65629a316d Make .hg/hgrc optional for repositories published by hgwebdir. diff --git a/mercurial/hgweb.py b/mercurial/hgweb.py --- a/mercurial/hgweb.py +++ b/mercurial/hgweb.py @@ -960,7 +960,10 @@ class hgwebdir: parity = 0 for name, path in self.repos: u = ui() - u.readconfig(file(os.path.join(path, '.hg', 'hgrc'))) + try: + u.readconfig(file(os.path.join(path, '.hg', 'hgrc'))) + except IOError: + pass get = u.config url = ('/'.join([req.env["REQUEST_URI"], name])