email notification setup

Matt Mackall mpm at
Thu Sep 22 10:16:27 CDT 2005

On Thu, Sep 22, 2005 at 03:20:21PM +0200, Zbynek Winkler wrote:
> Hello!
> Does anyone have an email notificator ready for use with mercurial 
> changegroup hook?

Add this to .hg/hgrc:

commit = commithook

And put this in your path:


SUBJECT=`hg log -r $NODE | grep "^summary:" | cut -b 14-`
hg log -vpr $NODE | mail -s "commit: $SUBJECT" commit-list at

Mathematics is the supreme nostalgia of our time.

More information about the Mercurial mailing list