Calling Python Functions from Non-hooks

Micah Ransdell mjr578 at gmail.com
Tue Feb 3 15:47:23 CST 2009


Is it possible to call a python function from a non-hook in a hgrc file? For
example, I am wanting to return a list of users that are allowed to read a
repository (under allow_read), but I want to do that dynamically. Is it
possible to call a python function in much the same way that we can call
them for hooks? Obviously I could periodically go through and update the
hgrc file with the users who are allowed to read the repo through an
automated process, but I would prefer the check to happen when someone
accesses the repository. Any suggestions?

Thank you in advance.

Micah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20090203/82c2ec7a/attachment.htm 


More information about the Mercurial mailing list