mercurial/commands.py
changeset 3344 d9b3d3d34749
parent 3319 80654c248793
child 3345 a09be4317f9c
equal deleted inserted replaced
3343:ab406cfa1b99 3344:d9b3d3d34749
  2461 
  2461 
  2462     optlist = ("name templates style address port ipv6"
  2462     optlist = ("name templates style address port ipv6"
  2463                " accesslog errorlog webdir_conf")
  2463                " accesslog errorlog webdir_conf")
  2464     for o in optlist.split():
  2464     for o in optlist.split():
  2465         if opts[o]:
  2465         if opts[o]:
  2466             ui.setconfig("web", o, opts[o])
  2466             ui.setconfig("web", o, str(opts[o]))
  2467 
  2467 
  2468     if repo is None and not ui.config("web", "webdir_conf"):
  2468     if repo is None and not ui.config("web", "webdir_conf"):
  2469         raise hg.RepoError(_("There is no Mercurial repository here"
  2469         raise hg.RepoError(_("There is no Mercurial repository here"
  2470                              " (.hg not found)"))
  2470                              " (.hg not found)"))
  2471 
  2471