summaryrefslogtreecommitdiff
path: root/BitKeeper/triggers
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2000-10-18 20:59:29 -0600
committerunknown <sasha@mysql.sashanet.com>2000-10-18 20:59:29 -0600
commit3712d52687807b1027d2b7942b6ae0bc61706bcd (patch)
tree309439cb15a2d495c750e8799c6ff90367ac8801 /BitKeeper/triggers
parent80227183103cb9dcb95e8548216a27738c8fceba (diff)
downloadmariadb-git-3712d52687807b1027d2b7942b6ae0bc61706bcd.tar.gz
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
Diffstat (limited to 'BitKeeper/triggers')
-rwxr-xr-xBitKeeper/triggers/post-commit31
1 files 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 <<EOF
+From: $FROM
+To: $TO
+Subject: bk commit
+
+EOF
+ bk changes -v -r+
+ ) | /usr/sbin/sendmail -t
+else
+ echo "commit failed because '$BK_COMMIT', sorry life is hard..."
+fi