[issue1586] hgwebdir configuration cleanup

Alexander Solovyov mercurial-bugs at selenic.com
Wed Apr 1 08:49:39 CDT 2009


New submission from Alexander Solovyov <piranha at piranha.org.ua>:

hg serve --webdir-conf option is currently handled (at the hgwebdir) quite
unconsistently, which makes it impossible (and hard to implement in a non-ugly
way) to use options from this config in nested hgwebs.

The plan is to read webdir config as usual config file, effectively updating
configuration of hgwebdir's ui object, which is then passed as parent ui to
nested hgwebs.

This can raise some conficts in options, particularly in the [paths]
section. This one could be solved with cleanup of section before loading webdir
config. If there are any [paths] defined in config of nested hgweb, it's not a
problem - they are not used anyway.

I'm going to look at what config options are used in hgweb to determine if there
are any other possibilities of conflicts.

----------
assignedto: piranha
messages: 8959
nosy: djc, piranha
priority: bug
status: unread
title: hgwebdir configuration cleanup
topic: hgweb

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1586>
____________________________________________________



More information about the Mercurial-devel mailing list