mercurial/hgweb/hgweb_mod.py
changeset 5995 b913d3aacddc
parent 5993 948a41e77902
child 6018 404be894cf71
child 6141 90e5c82a3859
--- 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