I'm currently writing a Hg python hook to drive Redmine tickets.
I discovered that some context is passed from RhodeCode to the Hg server via ui.config('rhodecode_extras....') dict, and the 'username' from the auth context was exactly what I needed. But I'm missing access to Rhodecode's config() where I need to fetch a few custom configuration params.
A plain 'from pylons import config' does not work, I get an empty one.
Maybe it's not a good or safe idea to pass the whole app config up to the hook, in this case woud it be possible to at least copy a well-known section from the app config to Hg's ui.config ?
Thanks for your help and your great application ! It's fun to hack on it.