Notify Extension fails to run for remote push

John Buckley nhoj.buckley at googlemail.com
Wed Jan 13 07:41:15 CST 2010


Hi,

I have the notify ext set up on my remote host. All notify settings
are in ~/.hgrc.
When I push from a local repo on the remote host the notify extension
works fine and the notification email is sent ok.
If I push (via ssh) from a client then the notify extension is never
called and no email is sent.

I've searched the wiki, web and mailing list but have so far failed to
find a solution.

Here is my notify config in ~/.hgrc:

[hooks]
changegroup.notify = python:hgext.notify.hook
#incoming.notify = python:hgext.notify.hook

[email]
from = repo at xxx.com

[smtp]
host = localhost

[web]
baseurl = http://xxx.com/

[notify]
sources = server push pull bundle
template = \nChange: {rev}:{node|short} in {webroot}\nAuthor:
{author}\nDate: {date|date}\nDetails: {baseurl}{webroot}/rev/{node\
|short}\nSummary:\n\n{desc}\n
maxdiff = 0
strip = 5
#config =
test = False

[reposubs]
Projects/hg/* = john at xxx.com

Output from local hg push -v:
pushing to /Users/repo/Projects/hg/TestHgEmail
searching for changes
1 changesets found
adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
calling hook changegroup.notify: hgext.notify.hook
notify: sending 1 subscribers 1 changes
sending mail: smtp host localhost, port 25

Output from remote hg push:
running ssh repo at xxx "hg -R Projects/hg/TestHgEmail serve --stdio"
pushing to ssh://repo@xxx/Projects/hg/TestHgEmail
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

Any help appreciated.

Thanks,

John
------------------------
Dr. John Buckley

Olive Toast Software Ltd
www.olivetoast.com

www.1010uk.org
------------------------


More information about the Mercurial mailing list