mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
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
This commit is contained in:
@@ -1,14 +1,21 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
shift
|
shift
|
||||||
REPO=`bk gethost`:`pwd`
|
TO=dev@mysql.com
|
||||||
TO=dev@mysql.com
|
FROM=$USER@mysql.com
|
||||||
if [ -f BitKeeper/etc/pushed -a "$BK_COMMIT" = OK ]
|
|
||||||
then (
|
if [ "$BK_COMMIT" = OK ]
|
||||||
echo ${USER}@"$@"
|
then
|
||||||
echo ""
|
echo "Commit successful, notifying developers at $TO"
|
||||||
bk changes - < BitKeeper/etc/pushed
|
(
|
||||||
) | mail -s "Outgoing from $REPO" $TO
|
cat <<EOF
|
||||||
else
|
From: $FROM
|
||||||
echo ${USER}@"$@"| mail -s "Outgoing from $REPO = $BK_OUTGOING" $TO
|
To: $TO
|
||||||
fi
|
Subject: bk commit
|
||||||
|
|
||||||
|
EOF
|
||||||
|
bk changes -v -r+
|
||||||
|
) | /usr/sbin/sendmail -t
|
||||||
|
else
|
||||||
|
echo "commit failed because '$BK_COMMIT', sorry life is hard..."
|
||||||
|
fi
|
||||||
|
Reference in New Issue
Block a user