Mercurial > hg
changeset 1140:04d52b446e5e
Don't create repo objects in hgwebdir, ui object is enough.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Mon, 29 Aug 2005 07:19:02 +0200 |
parents | 916bb2849c4c |
children | 033c968d7c66 |
files | mercurial/hgweb.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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("//", "/")