mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 20:11:42 +01:00
6a4cff9493
BitKeeper/triggers/post-commit: limit mail to 10,000 lines
26 lines
423 B
Bash
Executable file
26 lines
423 B
Bash
Executable file
#!/bin/sh
|
|
|
|
#shift
|
|
TO=dev@mysql.com
|
|
FROM=$USER@mysql.com
|
|
LIMIT=10000
|
|
|
|
BK_STATUS=$BK_STATUS$BK_COMMIT
|
|
|
|
if [ "$BK_STATUS" = OK ]
|
|
then
|
|
echo "Commit successful, notifying developers at $TO"
|
|
(
|
|
cat <<EOF
|
|
List-ID: <bk.mysql>
|
|
From: $FROM
|
|
To: $TO
|
|
Subject: bk commit
|
|
|
|
EOF
|
|
bk changes -v -r+
|
|
bk cset -r+ -d
|
|
) | head -n $LIMIT | /usr/sbin/sendmail -t
|
|
else
|
|
echo "commit failed because '$BK_STATUS', sorry life is hard..."
|
|
fi
|