Show More
@@ -2721,9 +2721,9 b' def serve(ui, repo, **opts):' | |||||
2721 |
|
2721 | |||
2722 | baseui = repo and repo.baseui or ui |
|
2722 | baseui = repo and repo.baseui or ui | |
2723 | optlist = ("name templates style address port prefix ipv6" |
|
2723 | optlist = ("name templates style address port prefix ipv6" | |
2724 | " accesslog errorlog webdir_conf certificate") |
|
2724 | " accesslog errorlog webdir_conf certificate encoding") | |
2725 | for o in optlist.split(): |
|
2725 | for o in optlist.split(): | |
2726 |
if opts |
|
2726 | if opts.get(o, None): | |
2727 | baseui.setconfig("web", o, str(opts[o])) |
|
2727 | baseui.setconfig("web", o, str(opts[o])) | |
2728 | if (repo is not None) and (repo.ui != baseui): |
|
2728 | if (repo is not None) and (repo.ui != baseui): | |
2729 | repo.ui.setconfig("web", o, str(opts[o])) |
|
2729 | repo.ui.setconfig("web", o, str(opts[o])) |
General Comments 0
You need to be logged in to leave comments.
Login now