I've written a generic changegroup hook function that I would 开发者_StackOverflow中文版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?
Bah. See 4.2 Reading Configuration Files
精彩评论