Email notification when pushing back via http

Simon King simon at simonking.org.uk
Thu Dec 6 12:39:10 UTC 2012


On Thu, Dec 6, 2012 at 11:16 AM, x <wasedaxiao at gmail.com> wrote:
> I got an email if I use absolute path.
>
> worked:
> hg push /ws/hg-master/scripts
>
> did Not work:
> hg push http://mycompany.com/hg/scripts
>
> I must miss something here.
>
> Regards,
> xj
>

Do you have access to the logs from the server? They might give you some hints.

I assume that the notify extension is configured in
/ws/hg-master/scripts/.hg/hgrc. Who is that file owned by, and who
does the web server process run as? By default, Mercurial will ignore
config files that are owned by another user, so if the web server is
running as user "apache" but the config file is owned by you,
mercurial will ignore it. See http://mercurial.selenic.com/wiki/Trust
for details.

Hope that helps,

Simon



More information about the Mercurial mailing list