Don't create repo objects in hgwebdir, ui object is enough.
authorThomas Arendsen Hein <thomas@intevation.de>
Mon, 29 Aug 2005 07:19:02 +0200
changeset 1140 04d52b446e5e
parent 1139 916bb2849c4c
child 1141 033c968d7c66
Don't create repo objects in hgwebdir, ui object is enough.
mercurial/hgweb.py
--- a/mercurial/hgweb.py	Mon Aug 29 07:07:07 2005 +0200
+++ b/mercurial/hgweb.py	Mon Aug 29 07:19:02 2005 +0200
@@ -942,8 +942,9 @@
             repos = self.cp.items("paths")
             repos.sort()
             for name, path in repos:
-                repo = repository(ui(), path)
-                get = repo.ui.config
+                u = ui()
+                u.readconfig(file(os.path.join(path, '.hg', 'hgrc')))
+                get = u.config
 
                 url = os.environ["REQUEST_URI"] + "/" + name
                 url = url.replace("//", "/")