回复: 回复: 回复: Can not auto send email
Adrian Klaver
adrian.klaver at aklaver.com
Sat May 31 17:01:34 UTC 2014
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
More information about the Mercurial
mailing list