summaryrefslogtreecommitdiff
path: root/BitKeeper/triggers
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2004-03-25 23:29:45 +0200
committerunknown <monty@mysql.com>2004-03-25 23:29:45 +0200
commit9fbb59ecdb5807c93146f0772bbc8c770bba5747 (patch)
tree7815fb40163d1db39e3991dcd19341ef57d08d74 /BitKeeper/triggers
parent719020af170c193cef3ce6b350d487de20a31c87 (diff)
parente27b39393bd59129b796a0d30e4bedc95256b618 (diff)
downloadmariadb-git-9fbb59ecdb5807c93146f0772bbc8c770bba5747.tar.gz
Merge with 4.0
BitKeeper/etc/logging_ok: auto-union BitKeeper/deleted/.del-libmysql.def~f5dffcb3ed925d28: Auto merged BitKeeper/deleted/.del-post-incoming~9f2168f531f09f3b: Auto merged BitKeeper/deleted/.del-post-outgoing~1dd3d8f0f6e8f3cd: Auto merged VC++Files/innobase/innobase.dsp: Auto merged VC++Files/strings/MASM6x/strings.dsp: Auto merged client/mysqldump.c: Auto merged innobase/sync/sync0sync.c: Auto merged myisam/mi_check.c: Auto merged mysql-test/t/union.test: Auto merged mysql-test/t/update.test: Auto merged mysys/mf_iocache.c: Auto merged sql/nt_servc.cc: Auto merged mysql-test/r/system_mysql_db.result: Auto merged sql/sql_base.cc: Auto merged
Diffstat (limited to 'BitKeeper/triggers')
-rwxr-xr-xBitKeeper/triggers/post-commit25
1 files changed, 16 insertions, 9 deletions
diff --git a/BitKeeper/triggers/post-commit b/BitKeeper/triggers/post-commit
index b0d70c85661..1c4608835d6 100755
--- a/BitKeeper/triggers/post-commit
+++ b/BitKeeper/triggers/post-commit
@@ -1,11 +1,11 @@
#!/bin/sh
#shift
-TO=dev-public@mysql.com
FROM=$USER@mysql.com
INTERNALS=internals@lists.mysql.com
DOCS=docs-commit@mysql.com
LIMIT=10000
+VERSION="4.0"
if [ "$REAL_EMAIL" = "" ]
then
@@ -20,17 +20,24 @@ if [ "$BK_STATUS" = OK ]
then
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]*\).*$/ BUG#\1/p'`
+if [ "$BUG" = "" ]
+then
+ TO=dev-public@mysql.com
+else
+ TO=dev-bugs@mysql.com
+fi
#++
-# dev-public@
+# dev-public@ / dev-bugs@
#--
echo "Commit successful, notifying developers at $TO"
(
cat <<EOF
-List-ID: <bk.mysql-4.1>
+List-ID: <bk.mysql-$VERSION>
From: $FROM
To: $TO
-Subject: bk commit - 4.1 tree ($CHANGESET)
+Subject: bk commit - $VERSION tree ($CHANGESET)$BUG
EOF
bk changes -v -r+
@@ -43,13 +50,13 @@ EOF
echo "Notifying internals list at $INTERNALS"
(
cat <<EOF
-List-ID: <bk.mysql-4.1>
+List-ID: <bk.mysql-$VERSION>
From: $FROM
To: $INTERNALS
-Subject: bk commit into 4.1 tree ($CHANGESET)
+Subject: bk commit into $VERSION 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
+$VERSION 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.
For information on how to access the public repository
@@ -70,10 +77,10 @@ EOF
echo "Notifying docs list at $DOCS"
(
cat <<EOF
-List-ID: <bk.mysql-4.1>
+List-ID: <bk.mysql-$VERSION>
From: $FROM
To: $DOCS
-Subject: bk commit - 4.1 tree (Manual) ($CHANGESET)
+Subject: bk commit - $VERSION tree (Manual) ($CHANGESET)
EOF
bk changes -v -r+