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	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])