Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/hgwebdir_mod.py @ 2537:b6975008d44f
Fix hgwebdir to run hgweb using run_wsgi.
author | Eric Hopper <hopper@omnifarious.org> |
---|---|
date | Fri, 30 Jun 2006 08:47:41 -0700 |
parents | b8ccf6386db7 |
children | f4b7d71c1c60 |
comparison
equal
deleted
inserted
replaced
2536:8106e477f584 | 2537:b6975008d44f |
---|---|
132 virtual = req.env.get("PATH_INFO", "").strip('/') | 132 virtual = req.env.get("PATH_INFO", "").strip('/') |
133 if virtual: | 133 if virtual: |
134 real = dict(self.repos).get(virtual) | 134 real = dict(self.repos).get(virtual) |
135 if real: | 135 if real: |
136 try: | 136 try: |
137 hgweb(real).run(req) | 137 hgweb(real).run_wsgi(req) |
138 except IOError, inst: | 138 except IOError, inst: |
139 req.write(tmpl("error", error=inst.strerror)) | 139 req.write(tmpl("error", error=inst.strerror)) |
140 except hg.RepoError, inst: | 140 except hg.RepoError, inst: |
141 req.write(tmpl("error", error=str(inst))) | 141 req.write(tmpl("error", error=str(inst))) |
142 else: | 142 else: |