email notification setup

Zbynek Winkler zwin at users.sourceforge.net
Thu Sep 22 15:08:57 CDT 2005


Zbynek Winkler wrote:

> I used the commithook you suggested earlier... 

The problem is that the sshrepo.py does not expect any extra output, so 
the hook must not output anything. Changing the commithook like this 
helps a little:

SUBJECT=`hg log -r $NODE 2>/dev/null| grep "^summary:" | cut -b 14-`
hg log -vpr $NODE 2>&1 | mail -s "commit: $SUBJECT" "$@"

It doesn't throw exception anymore (and let's the email be specified in 
the hgrc).

But the 'hg log' is still missing the repo. The email says only:

abort: no repo found!

Does the ssh tunel change the current directory to the target repo?

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