The reason the OP is reporting this issue is probably because there's not too much documentation about this.
For example the custom hooks option in the rhodecode interface.
What do I put in the left field? some kind of key identifying the point at which the hook is invoked.? What do I put in the right field? a shell script? a python script? Where do I put this script?