##// END OF EJS Templates
hgweb: add baseui to hgweb entrypoint
Matt Mackall -
r10994:c12a57c1 default
parent child Browse files
Show More
@@ -8,8 +8,8 b''
8
8
9 import hgweb_mod, hgwebdir_mod
9 import hgweb_mod, hgwebdir_mod
10
10
11 def hgweb(repo, name=None):
11 def hgweb(repo, name=None, baseui=None):
12 return hgweb_mod.hgweb(repo, name=name)
12 return hgweb_mod.hgweb(repo, name=name, baseui=baseui)
13
13
14 def hgwebdir(config, baseui=None):
14 def hgwebdir(config, baseui=None):
15 return hgwebdir_mod.hgwebdir(config, baseui=baseui)
15 return hgwebdir_mod.hgwebdir(config, baseui=baseui)
@@ -21,8 +21,11 b' perms = {'
21 }
21 }
22
22
23 class hgweb(object):
23 class hgweb(object):
24 def __init__(self, repo, name=None):
24 def __init__(self, repo, name=None, baseui=None):
25 if isinstance(repo, str):
25 if isinstance(repo, str):
26 if baseui:
27 u = baseui.copy()
28 else:
26 u = ui.ui()
29 u = ui.ui()
27 u.setconfig('ui', 'report_untrusted', 'off')
30 u.setconfig('ui', 'report_untrusted', 'off')
28 u.setconfig('ui', 'interactive', 'off')
31 u.setconfig('ui', 'interactive', 'off')
General Comments 0
You need to be logged in to leave comments. Login now