--- 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