From 3712d52687807b1027d2b7942b6ae0bc61706bcd Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 18 Oct 2000 20:59:29 -0600 Subject: [PATCH] post-commit fixed up post commit, let's see if it works BitKeeper/triggers/post-commit: fixed up post commit, let's see if it works --- BitKeeper/triggers/post-commit | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/BitKeeper/triggers/post-commit b/BitKeeper/triggers/post-commit index cf4bec22161..ed3b97c3130 100755 --- a/BitKeeper/triggers/post-commit +++ b/BitKeeper/triggers/post-commit @@ -1,14 +1,21 @@ #!/bin/sh - shift - REPO=`bk gethost`:`pwd` - TO=dev@mysql.com - if [ -f BitKeeper/etc/pushed -a "$BK_COMMIT" = OK ] - then ( - echo ${USER}@"$@" - echo "" - bk changes - < BitKeeper/etc/pushed - ) | mail -s "Outgoing from $REPO" $TO - else - echo ${USER}@"$@"| mail -s "Outgoing from $REPO = $BK_OUTGOING" $TO - fi +shift +TO=dev@mysql.com +FROM=$USER@mysql.com + +if [ "$BK_COMMIT" = OK ] +then + echo "Commit successful, notifying developers at $TO" + ( + cat <