email notification setup

Matt Mackall mpm at selenic.com
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:

[hooks]
commit = commithook

And put this in your path:

#!/bin/sh

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

-- 
Mathematics is the supreme nostalgia of our time.


More information about the Mercurial mailing list