mariadb/BitKeeper/triggers/post-commit

87 lines
1.7 KiB
Text
Raw Normal View History

#!/bin/sh
#shift
2001-05-27 01:37:46 -05:00
TO=dev-public@mysql.com
FROM=$USER@mysql.com
INTERNALS=internals@lists.mysql.com
2001-11-07 01:49:38 -06:00
DOCS=docs-commit@mysql.com
2001-03-05 10:33:05 +01:00
LIMIT=10000
if [ "$REAL_EMAIL" = "" ]
then
echo "Warning: you must set REAL_EMAIL in your profile"
else
FROM=$REAL_EMAIL
fi
BK_STATUS=$BK_STATUS$BK_COMMIT
if [ "$BK_STATUS" = OK ]
then
2003-10-25 22:43:19 +02:00
CHANGESET=`bk -R prs -r+ -h -d':P:::I:' ChangeSet`
#++
# dev-public@
#--
echo "Commit successful, notifying developers at $TO"
(
cat <<EOF
List-ID: <bk.mysql-4.1>
From: $FROM
To: $TO
2002-12-05 19:38:42 +02:00
Subject: bk commit - 4.1 tree ($CHANGESET)
EOF
bk changes -v -r+
bk cset -r+ -d
) | head -n $LIMIT | /usr/sbin/sendmail -t
#++
# internals@ mail
#--
echo "Notifying internals list at $INTERNALS"
(
cat <<EOF
List-ID: <bk.mysql-4.1>
From: $FROM
To: $INTERNALS
2002-12-05 19:38:42 +02:00
Subject: bk commit into 4.1 tree ($CHANGESET)
Below is the list of changes that have just been committed into a local
4.1 repository of $USER. When $USER does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
2001-06-28 19:48:49 -06:00
For information on how to access the public repository
see http://www.mysql.com/doc/I/n/Installing_source_tree.html
EOF
bk changes -v -r+
bk cset -r+ -d
2001-03-05 10:33:05 +01:00
) | head -n $LIMIT | /usr/sbin/sendmail -t
#++
2001-11-07 01:49:38 -06:00
# docs-commit@ mail
# Picks up anything under the Docs subdirectory (relevant for docs team).
#--
bk changes -v -r+ | grep -q " Docs/"
2001-11-08 00:14:16 +01:00
if [ $? -eq 0 ]
then
echo "Notifying docs list at $DOCS"
(
cat <<EOF
List-ID: <bk.mysql-4.1>
From: $FROM
To: $DOCS
2002-12-05 19:38:42 +02:00
Subject: bk commit - 4.1 tree (Manual) ($CHANGESET)
EOF
bk changes -v -r+
bk cset -r+ -d
) | head -n $LIMIT | /usr/sbin/sendmail -t
fi
else
2002-08-13 02:33:25 +03:00
echo "commit failed because '$BK_STATUS', you may need to re-clone..."
fi