Don't create repo objects in hgwebdir, ui object is enough.

This commit is contained in:
Thomas Arendsen Hein 2005-08-29 07:19:02 +02:00
parent 21afb81102
commit 1174c2ce17

View File

@ -942,8 +942,9 @@ class hgwebdir:
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("//", "/")