diff options
author | unknown <tsmith@ramayana.hindu.god> | 2008-01-23 16:18:23 -0700 |
---|---|---|
committer | unknown <tsmith@ramayana.hindu.god> | 2008-01-23 16:18:23 -0700 |
commit | 14b1de4293c856eff1f05e2ec1bc857b95861e6d (patch) | |
tree | 31cd1cf11dc4c6155e0994947cd4877547cf33a8 /BitKeeper/triggers/post-commit.innodb.pl | |
parent | e3b246d6e8290f39daa367a2755a22ae3850c76a (diff) | |
download | mariadb-git-14b1de4293c856eff1f05e2ec1bc857b95861e6d.tar.gz |
Add triggers to notify InnoDB developers when MySQL developers change files
that they control.
BitKeeper/triggers/post-commit.innodb.pl:
Trigger to notify InnoDB developers about changes in InnoDB
files.
BitKeeper/triggers/post-incoming.innodb.pl:
Trigger to notify InnoDB developers about changes in InnoDB
files.
BitKeeper/triggers/pre-commit.innodb.pl:
Trigger to warn MySQL developers that they have changed InnoDB files,
and that their changes will be sent to the InnoDB developers if they
choose to commit.
BitKeeper/triggers/triggers-lib.pl:
Utility functions for BK triggers written in Perl.
Diffstat (limited to 'BitKeeper/triggers/post-commit.innodb.pl')
-rwxr-xr-x | BitKeeper/triggers/post-commit.innodb.pl | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/BitKeeper/triggers/post-commit.innodb.pl b/BitKeeper/triggers/post-commit.innodb.pl new file mode 100755 index 00000000000..44d98b04838 --- /dev/null +++ b/BitKeeper/triggers/post-commit.innodb.pl @@ -0,0 +1,22 @@ +#! /usr/bin/perl + +use strict; +use warnings; + +use FindBin; +require "$FindBin::Bin/triggers-lib.pl"; + +# Don't run unless commit was successful +check_status() || exit 0; + +my $cset = latest_cset(); + +# Read most recent ChangeSet's changed files. Send merge changes along, since +# they'll need to be incorporated in InnoDB's source tree eventually. +my $changes = innodb_get_changes('cset', $cset, 'yes') + or exit 0; + +innodb_send_changes_email($cset, $changes) + or exit 1; + +exit 0; |