Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Fri Feb 01 10:31:15 2008 +0100 +++ b/mercurial/hgweb/hgweb_mod.py Fri Feb 01 13:09:45 2008 -0800 @@ -79,9 +79,10 @@ return nav class hgweb(object): - def __init__(self, repo, name=None): + def __init__(self, repo, name=None, parentui=None): if isinstance(repo, str): - parentui = ui.ui(report_untrusted=False, interactive=False) + parentui = (parentui or + ui.ui(report_untrusted=False, interactive=False)) self.repo = hg.repository(parentui, repo) else: self.repo = repo