Loading extensions at hgwebdir index?

Brodie Rao dackze at gmail.com
Mon Jan 19 11:55:02 CST 2009

On Jan 19, 2009, at 12:47 PM, Isaac Jurado wrote:

> On Mon, Jan 19, 2009 at 6:34 PM, Brodie Rao <dackze at gmail.com> wrote:
>> To be more specific, I have an extension that allows the user to  
>> apply
>> settings for multiple repos in a single hgrc. This works fine for
>> everything but setting the contact, description, etc. in the
>> repository index.  Mercurial doesn't load the extension at that  
>> point.
> Technically, hgwebdir reads two configuration files: the normal hgrc
> sequence and another one with some webdir-specific options.  Which one
> are you working with?

I'm working with the regular hgrc files, not the limited hgwebdir  
conf. I've
tried both $HOME/.hgrc and /etc/mercurial/hgrc but neither is loaded  
viewing the hgwebdir index - they're only loaded when I view an  

I don't know if the problem is specific to it actually reading the  
file, or
if it's an issue of it not loading extensions at this point. Grepping  
for extensions.loadall() shows it's only used in dispatch and localrepo.

More information about the Mercurial-devel mailing list