Differences between revisions 3 and 4
Revision 3 as of 2005-10-24 09:52:58
Size: 717
Editor: tonfa
Comment:
Revision 4 as of 2005-10-24 10:13:01
Size: 716
Editor: tonfa
Comment: s/resolved/testing/ for roundup status
Deletions are marked like this. Additions are marked like this.
Line 24: Line 24:
hg log -vr $NODE | mail -s "[$ISSUE] [status=resolved] commit: $SUBJECT" roundup@example.com hg log -vr $NODE | mail -s "[$ISSUE] [status=testing] commit: $SUBJECT" roundup@example.com

You can use the hook feature to automatically send mail when a commit occurs. Add the following to .hg/hgrc:

[hooks]
commit = commithook

And put this in a file called commithook in your path:

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

And something like this can be used for closing bugs in roundup:

ISSUE=`hg log -vr $NODE | grep -o "\<fix:[[:alnum:]]*" | head -n 1 | sed s/fix://`
[ -z $ISSUE ] && exit
SUBJECT=`hg log -r $NODE | grep "^summary:" | cut -b 14-`
hg log -vr $NODE | mail -s "[$ISSUE] [status=testing] commit: $SUBJECT" roundup@example.com

Hook (last edited 2021-08-23 00:42:32 by PaulBissex)