Make .hg/hgrc optional for repositories published by hgwebdir.
authorThomas Arendsen Hein <thomas@intevation.de>
Wed, 31 Aug 2005 07:25:02 +0200
changeset 1170 85555540a4e2
parent 1169 e388c4f5cec5
child 1171 a425bb927ede
child 1172 3f30a5e7e15b
Make .hg/hgrc optional for repositories published by hgwebdir.
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])