mercurial/commands.py
changeset 4866 9858477ed74c
parent 4864 fc8b3e7cbf6b
child 4868 192cd95c2ba8
child 4877 242026115e6a
equal deleted inserted replaced
4865:439e2f2fde42 4866: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