I know how to specify which hooks are run when. What I want to know is if it is possible to pass config into the hook via the hgrc
file. Extensions can do this, e.g.
[extensions]
someextension = something
[someextension]
some.config = 1
some.other.config = True
I want to be able to do something similar for hooks, e.g.
[hooks]
changegroup.mail_someone = python:something
[changegroup.mail_someone]
to_address = [email protected]
Is something like this possible? Searching for a way to do this hasn't turned up anything useful... If it is possible, how do I go about reading in the config in my (Python in-process) hook handler?
os.popen('hg showconfig mail_someone.to_address')
? – Karlsbad