Email notification when pushing back via http
x
wasedaxiao at gmail.com
Fri Dec 7 00:42:00 UTC 2012
Hi Yannick,
After adding "serve", and with Simon's comment about "user trust", it
worked.
Thank you very much, everyone!
Best,
xj
On Fri, Dec 7, 2012 at 6:03 AM, Yannick CHARLES <yann.cha at free.fr> wrote:
> Hello,
>
> I think your problem comes from the setting of the "sources" parameter:
> setting it to "push" will only send e-mails when pushing locally. In order
> to send e-mails when pushing via http, you need to add "serve" to it, i.e.:
>
> [notify]
> sources = push serve
>
> Best regards,
> Yannick CHARLES
>
> Message: 3
>> Date: Thu, 6 Dec 2012 17:45:18 +0900
>> From: x <wasedaxiao at gmail.com>
>> To: mercurial at selenic.com
>> Subject: Email notification when pushing back via http
>> Message-ID:
>> <CAETHjxZGCByJ1xa9uONMWshGh0ZqNaqD5e=
>> 6Ujyd82hr36AaCw at mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>>
>> Hello,
>>
>> I want to set an email notification if I push my local changes back to
>> main
>> repository which is locate at web.
>>
>> e.g.
>> hg push http://mycompany.com/hg/test-repo/
>>
>> The config in hgrc are shown below. It worked when I "hg push
>> /absolute/path" but I could not get any email when I use "hg push
>> http://mycompany.com/hg/test-repo/".
>> How to configure email notification when pushing is based on http
>> protocol.
>> Do I need configure something in hgweb.cgi/hgweb.config side?
>>
>> ---
>> [paths]
>> default = /ws/hg-master/scripts
>>
>> [web]
>> allow_push = *
>> push_ssl = false
>> baseurl=http://mycompany.com/hg/test-repo/
>>
>>
>> [extensions]
>> hgext.notify =
>>
>> [hooks]
>> changegroup.notify=python:hgext.notify.hook
>>
>> [email]
>> from= mymail at mycompany.com
>> method = /usr/sbin/sendmail
>>
>> [smtp]
>> host=localhost
>>
>> strip = 4
>> [notify]
>> test=false
>> config = /ws/hg-master/scripts/.hg/notify.conf
>>
>> sources = push
>>
>> template= Subject: {webroot} {desc|firstline|strip}\n
>> changeset {node|short} in {root}
>> \nDetails:
>> {baseurl}/rev/{node|short}\n
>> Description: {desc|tabindent|strip}\n
>>
>> diffstat=false
>> ---
>>
>> Regards,
>> xj
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20121207/ea6b8d65/attachment-0002.html>
More information about the Mercurial
mailing list