summaryrefslogtreecommitdiff
path: root/BitKeeper
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-02-16 14:03:16 -0800
committerunknown <jimw@mysql.com>2005-02-16 14:03:16 -0800
commitf1595c34e17486e97b75af1f1842f0c2db4720c2 (patch)
tree2322132eed8bb258555bc5a84e8c6a8677e03660 /BitKeeper
parent64bd892d9352d56d174e77b45b555943ce098521 (diff)
downloadmariadb-git-f1595c34e17486e97b75af1f1842f0c2db4720c2.tar.gz
Make post-commit trigger not send emails when the message would not contain
any actual changes. (Often the case in merges where the only change involves renumbering ChangeSet entries.) BitKeeper/triggers/post-commit: Suppress emails when there's no changes actually reported
Diffstat (limited to 'BitKeeper')
-rwxr-xr-xBitKeeper/triggers/post-commit7
1 files changed, 7 insertions, 0 deletions
diff --git a/BitKeeper/triggers/post-commit b/BitKeeper/triggers/post-commit
index a38b1f5a068..d2a4f9153b2 100755
--- a/BitKeeper/triggers/post-commit
+++ b/BitKeeper/triggers/post-commit
@@ -19,6 +19,13 @@ BK_STATUS=$BK_STATUS$BK_COMMIT
if [ "$BK_STATUS" = OK ]
then
+HAS_ACTUAL_CHANGES=`bk cset -r+ -d | grep -v "^#"`
+if [ "$HAS_ACTUAL_CHANGES" = "" ]
+then
+ echo ChangeSet had no real changes, not sending emails
+ exit
+fi
+
CHANGESET=`bk -R prs -r+ -h -d':P:::I:' ChangeSet`
BUG=`bk -R prs -r+ -h -d':C:' ChangeSet | sed -ne 's/^.*[Bb][Uu][Gg] *# *\([0-9][0-9]*\).*$/\1/p'`