Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 4835:9858477ed74c
serve: respect settings from .hg/hgrc
create_server was looking only at the root ui object, ignoring any
settings from .hg/hgrc. To keep respecting command-line arguments,
commands.serve must also call repo.ui.setconfig.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Wed, 11 Jul 2007 19:56:16 -0300 |
parents | fc8b3e7cbf6b |
children | 192cd95c2ba8 242026115e6a |
comparison
equal
deleted
inserted
replaced
4834:439e2f2fde42 | 4835:9858477ed74c |
---|---|
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 |