回复: 回复: 回复: 回复: Can not auto send email

390549824 at qq.com
Sat May 31 17:02:38 UTC 2014


let me have a try



------------------ 原始邮件 ------------------
发件人: "Adrian Klaver"<adrian.klaver at aklaver.com>; 
发送时间: 2014年6月1日(星期天) 凌晨1:01
收件人: "mercurial"<mercurial at selenic.com>; 
抄送: "龙"<390549824 at qq.com>; 
主题: Re: 回复: 回复: 回复: Can not auto send email



On 05/31/2014 09:55 AM, 龙 wrote:
> the output is :
>
> fengtianba at fengtianba-VirtualBox:~/hg-send-mail$ hg push
> pushing to ssh://hg@bitbucket.org/fengtianba/hg-send-mail
> running ssh hg at bitbucket.org "hg -R fengtianba/hg-send-mail serve --stdio"
> searching for changes
> 1 changesets found
> remote: adding changesets
> remote: adding manifests
> remote: adding file changes
> remote: added 1 changesets with 1 changes to 1 files
>

Hmm digging into notify.py found this:

First, enable the extension as explained in :hg:`help extensions`, and
register the hook you want to run. ``incoming`` and ``changegroup`` hooks
are run when changesets are received, while ``outgoing`` hooks are for
changesets sent to another repository::

   [hooks]
   # one email for each incoming changeset
   incoming.notify = python:hgext.notify.hook
   # one email for all incoming changesets
   changegroup.notify = python:hgext.notify.hook

   # one email for all outgoing changesets
   outgoing.notify = python:hgext.notify.hook

This seems at odds with the Wiki 
entry(http://mercurial.selenic.com/wiki/NotifyExtension).

So it would seem you need to add:

outgoing.notify = python:hgext.notify.hook

to your hgrc file.

-- 
Adrian Klaver
adrian.klaver at aklaver.com
.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20140601/68551e08/attachment-0002.html>


More information about the Mercurial mailing list