mariadb/BitKeeper/triggers/post-commit
unknown 5d2a74f97e post-commit Added List-ID: header for easier filtering.
BitKeeper/triggers/post-commit:
  Added List-ID: header for easier filtering.
BitKeeper/etc/logging_ok:
  Logging to logging@openlogging.org accepted
2001-02-22 14:49:08 -06:00

25 lines
394 B
Bash
Executable file

#!/bin/sh
#shift
TO=dev@mysql.com
FROM=$USER@mysql.com
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
) | /usr/sbin/sendmail -t
else
echo "commit failed because '$BK_STATUS', sorry life is hard..."
fi