[PATCH 2 of 6] Don't create repo objects in hgwebdir, ui object is enough

Thomas Arendsen Hein thomas at intevation.de
Mon Aug 29 00:43:58 CDT 2005


# HG changeset patch
# User Thomas Arendsen Hein <thomas at intevation.de>
# Node ID 04d52b446e5e6da50886f2e6dcb68739b4ec419c
# Parent  916bb2849c4c6594460557da8630957e364cdc33
Don't create repo objects in hgwebdir, ui object is enough.

diff -r 916bb2849c4c -r 04d52b446e5e mercurial/hgweb.py
--- a/mercurial/hgweb.py	Mon Aug 29 05:07:07 2005
+++ b/mercurial/hgweb.py	Mon Aug 29 05:19:02 2005
@@ -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("//", "/")


More information about the Mercurial mailing list