Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/commands.py @ 3342:d9b3d3d34749
ui.py: change the overlay from a dict to a SafeConfigParser.
This also fixes what's probably a bug - configitems was ignoring the overlay.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Tue, 10 Oct 2006 18:43:20 -0300 |
parents | 80654c248793 |
children | a09be4317f9c |
comparison
equal
deleted
inserted
replaced
3341:ab406cfa1b99 | 3342: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 |