mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
post-commit limit mail to 10,000 lines
BitKeeper/triggers/post-commit: limit mail to 10,000 lines
This commit is contained in:
parent
2ac92eb43c
commit
6a4cff9493
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
#shift
|
||||
TO=dev@mysql.com
|
||||
FROM=$USER@mysql.com
|
||||
LIMIT=10000
|
||||
|
||||
BK_STATUS=$BK_STATUS$BK_COMMIT
|
||||
|
||||
|
|
@ -19,7 +20,7 @@ Subject: bk commit
|
|||
EOF
|
||||
bk changes -v -r+
|
||||
bk cset -r+ -d
|
||||
) | /usr/sbin/sendmail -t
|
||||
) | head -n $LIMIT | /usr/sbin/sendmail -t
|
||||
else
|
||||
echo "commit failed because '$BK_STATUS', sorry life is hard..."
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue