equal
deleted
inserted
replaced
2455 optlist = ("name templates style address port ipv6" |
2455 optlist = ("name templates style address port ipv6" |
2456 " accesslog errorlog webdir_conf") |
2456 " accesslog errorlog webdir_conf") |
2457 for o in optlist.split(): |
2457 for o in optlist.split(): |
2458 if opts[o]: |
2458 if opts[o]: |
2459 parentui.setconfig("web", o, str(opts[o])) |
2459 parentui.setconfig("web", o, str(opts[o])) |
|
2460 if repo.ui != parentui: |
|
2461 repo.ui.setconfig("web", o, str(opts[o])) |
2460 |
2462 |
2461 if repo is None and not ui.config("web", "webdir_conf"): |
2463 if repo is None and not ui.config("web", "webdir_conf"): |
2462 raise hg.RepoError(_("There is no Mercurial repository here" |
2464 raise hg.RepoError(_("There is no Mercurial repository here" |
2463 " (.hg not found)")) |
2465 " (.hg not found)")) |
2464 |
2466 |