email notification setup

Zbynek Winkler zwin at users.sourceforge.net
Thu Sep 22 11:26:13 CDT 2005


Matt Mackall wrote:

>>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
>  
>
Thanks. I replaced 'commit' with 'changegroup' since I want to set this 
up in a remote repo that nobody commits to.

Where does $NODE come from? It tells me that

remote: hg log: option -r requires argument

Zbynek

-- 
http://zw.matfyz.cz/     http://robotika.cz/
Faculty of Mathematics and Physics, Charles University, Prague, Czech Republic



More information about the Mercurial mailing list