Mercurial > hg
changeset 1131:a67982e64109
Create repository objects instead of using own ConfigParser in hgwebdir.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 28 Aug 2005 17:55:15 +0200 |
parents | 1ad52c7679e1 |
children | 92525920ad29 |
files | mercurial/hgweb.py |
diffstat | 1 files changed, 2 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb.py Sun Aug 28 17:53:37 2005 +0200 +++ b/mercurial/hgweb.py Sun Aug 28 17:55:15 2005 +0200 @@ -942,14 +942,8 @@ repos = self.cp.items("paths") repos.sort() for name, path in repos: - cp2 = ConfigParser.SafeConfigParser() - cp2.read(os.path.join(path, ".hg", "hgrc")) - - def get(sec, val, default): - try: - return cp2.get(sec, val) - except: - return default + repo = repository(ui(), path) + get = repo.ui.config url = os.environ["REQUEST_URI"] + "/" + name url = url.replace("//", "/")