# HG changeset patch # User Thomas Arendsen Hein # Date 1125292742 -7200 # 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 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("//", "/")