I am trying to set up a hook to notify me of new commits by mail.
Due to the problem described in the inappropriate Mercurial hook , I cannot get it to work by simply adding the following to my .hg/hgrc , since the script will not run:
[hooks] changegroup = /path/to/script
As a workaround, I added a hook to hgweb.config , where it works as expected. Now when I click HTTP, the actual user running the script is apache (as defined when running id from inside the hook), which means I get errors like
Non-trusting .hg / hgrc file from untrusted user u, group g
I added
[trusted] users = u
but the same errors remain. What am I doing wrong? I understand this is completely wrong? Appreciate any help!
jonny source share