Search code examples
mercurialhgrcmercurial-hook

How do I reference the repository's hgrc sections from within my custom hook?


I've written a generic changegroup hook function that I would like to customize for each repository by setting some hgrc section variables, like so:

[my_hook_params]
name = whatever
version = 1.0

How should I go about doing this?


Solution

  • Bah. See 4.2 Reading Configuration Files