Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgweb_mod.py @ 5995:b913d3aacddc
profiling: allow CGI and FastCGI to be profiled
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Fri, 01 Feb 2008 13:09:45 -0800 |
parents | 948a41e77902 |
children | 404be894cf71 90e5c82a3859 |
comparison
equal
deleted
inserted
replaced
5994:a445388aa554 | 5995:b913d3aacddc |
---|---|
77 pass | 77 pass |
78 | 78 |
79 return nav | 79 return nav |
80 | 80 |
81 class hgweb(object): | 81 class hgweb(object): |
82 def __init__(self, repo, name=None): | 82 def __init__(self, repo, name=None, parentui=None): |
83 if isinstance(repo, str): | 83 if isinstance(repo, str): |
84 parentui = ui.ui(report_untrusted=False, interactive=False) | 84 parentui = (parentui or |
85 ui.ui(report_untrusted=False, interactive=False)) | |
85 self.repo = hg.repository(parentui, repo) | 86 self.repo = hg.repository(parentui, repo) |
86 else: | 87 else: |
87 self.repo = repo | 88 self.repo = repo |
88 | 89 |
89 hook.redirect(True) | 90 hook.redirect(True) |