Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb.py @ 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 |
comparison
equal
deleted
inserted
replaced
1139:916bb2849c4c | 1140:04d52b446e5e |
---|---|
940 def entries(**map): | 940 def entries(**map): |
941 parity = 0 | 941 parity = 0 |
942 repos = self.cp.items("paths") | 942 repos = self.cp.items("paths") |
943 repos.sort() | 943 repos.sort() |
944 for name, path in repos: | 944 for name, path in repos: |
945 repo = repository(ui(), path) | 945 u = ui() |
946 get = repo.ui.config | 946 u.readconfig(file(os.path.join(path, '.hg', 'hgrc'))) |
947 get = u.config | |
947 | 948 |
948 url = os.environ["REQUEST_URI"] + "/" + name | 949 url = os.environ["REQUEST_URI"] + "/" + name |
949 url = url.replace("//", "/") | 950 url = url.replace("//", "/") |
950 | 951 |
951 yield dict(contact=get("web", "contact") or | 952 yield dict(contact=get("web", "contact") or |