How to send commit informations to a mailing-list ?

Aurelien Jacobs aurel at gnuage.org
Wed Jun 7 15:09:01 CDT 2006


On Wed, 07 Jun 2006 21:15:05 +0200
David MENTRE <dmentre at linux-france.org> wrote:

> Hello Benoit,
> 
> David MENTRE <dmentre at linux-france.org> writes:
> 
> > "Benoit Boissinot" <bboissin at gmail.com> writes:
> >
> >> The notify extension was not supposed to work for the commit hook.
> >
> > So it is supposed to work for outgoing, changegroup and incoming hooks?
> > I did not know that and it is not written anywhere neither (or I did not
> > found it).
> >
> > Thank you for the tip (pun intended), I'll test that.
> 
> Ok, I tested it: the hook is called but no debug output is printed (nor
> an email sent):
> 
> david at morgana:/tmp/repo$ echo c >> c && hg commit -mt && hg --debug -v push ssh://lfo/tmp/repo
> pushing to ssh://lfo/tmp/repo
> running ssh lfo "hg -R tmp/repo serve --stdio"
> sending between command
> sending lock command
> sending heads command
> searching for changes
> common changesets up to 623eb7766f90
> sending addchangegroup command
> calling hook outgoing.notify: hgext.notify.hook
> sending unlock command
> remote: adding changesets
> remote: adding manifests
> remote: adding file changes
> remote: added 1 changesets with 1 changes to 1 files
> 
> david at morgana:/tmp/repo$ hg version
> Mercurial Distributed SCM (version 0.9)
> 
> 
> * Content of hgrc:
> david at morgana:~$ cat ~/.hgrc
> 
> [ui]
> username=David MENTRE <dmentre at linux-france.org>
> editor=emacs
> 
> [extensions]
> hbisect=
> notify =
> 
> [hooks]
> outgoing.notify = python:hgext.notify.hook
> changegroup.notify = python:hgext.notify.hook
> incoming.notify = python:hgext.notify.hook
> 
> [notify]
> test = True
> config = /home/david/pub/hg-subscriptions
> 
> [email]
> from = David MENTRE <dmentre at linux-france.org>

Try to add a [web] section. I discovered it is mandatory for notify:

[web]
baseurl = http://your.server.net/

Aurel


More information about the Mercurial mailing list