##// END OF EJS Templates
hgweb: make sure command options are set to all ui objects...
Yuya Nishihara -
r27182:71aa5a26 default
parent child Browse files
Show More
@@ -90,8 +90,10 b' def createservice(ui, repo, opts):'
90 if opts.get('port'):
90 if opts.get('port'):
91 opts['port'] = util.getport(opts.get('port'))
91 opts['port'] = util.getport(opts.get('port'))
92
92
93 alluis = set([ui])
93 if repo:
94 if repo:
94 baseui = repo.baseui
95 baseui = repo.baseui
96 alluis.update([repo.baseui, repo.ui])
95 else:
97 else:
96 baseui = ui
98 baseui = ui
97 optlist = ("name templates style address port prefix ipv6"
99 optlist = ("name templates style address port prefix ipv6"
@@ -100,9 +102,8 b' def createservice(ui, repo, opts):'
100 val = opts.get(o, '')
102 val = opts.get(o, '')
101 if val in (None, ''): # should check against default options instead
103 if val in (None, ''): # should check against default options instead
102 continue
104 continue
103 baseui.setconfig("web", o, val, 'serve')
105 for u in alluis:
104 if repo and repo.ui != baseui:
106 u.setconfig("web", o, val, 'serve')
105 repo.ui.setconfig("web", o, val, 'serve')
106
107
107 webconf = opts.get('web_conf') or opts.get('webdir_conf')
108 webconf = opts.get('web_conf') or opts.get('webdir_conf')
108 if webconf:
109 if webconf:
General Comments 0
You need to be logged in to leave comments. Login now