Calling Python Functions from Non-hooks

Brodie Rao dackze at gmail.com
Thu Feb 5 14:37:01 CST 2009


On Feb 5, 2009, at 3:26 PM, Matt Mackall wrote:

> [cc:ing back to list]
>
> On Thu, 2009-02-05 at 11:42 -0800, Micah Ransdell wrote:
>> I have narrowed it down to hgwebdir_mod.py. It seems that when
>> checking for permissions in read_allowed that the call to
>> ui.configlist isn't actually loading my extension and properly
>> wrapping the call to ui.config. Any advice on how to get my extension
>> to be loaded by hgwebdir_mod?
>
> Probably by setting up the extension in ~/.hgrc or /etc/mercurial/...
>
> Loading extensions is too expensive to do per-repo in hgweb's index.

I posted about this on the devel list a while ago, but what about  
loading extensions on the index without loading each repository? I  
have an extension that I'd like to use to change the contact,  
description, etc. fields on the index.

djc mentioned some possible solutions here, but the scope of the issue  
seems greater than just extension loading itself: http://www.selenic.com/pipermail/mercurial-devel/2009-January/010084.html


More information about the Mercurial mailing list