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