changeset 1170:85555540a4e2

Make .hg/hgrc optional for repositories published by hgwebdir.
author Thomas Arendsen Hein <thomas@intevation.de>
date Wed, 31 Aug 2005 07:25:02 +0200
parents e388c4f5cec5
children a425bb927ede 3f30a5e7e15b
files mercurial/hgweb.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb.py	Tue Aug 30 21:26:27 2005 +0200
+++ b/mercurial/hgweb.py	Wed Aug 31 07:25:02 2005 +0200
@@ -960,7 +960,10 @@
             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])