Bug 871473: New code hook "before_read" in Migrate.pm

r=LpSolit a=sgreen


git-svn-id: svn://10.0.0.236/trunk@264899 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mkanat%bugzilla.org 2013-07-23 09:30:46 +00:00
parent 5d472aeab0
commit 09771e1bd7
2 changed files with 8 additions and 1 deletions

View File

@ -1 +1 @@
8654
8655

View File

@ -153,6 +153,7 @@ sub do_migration {
}
$dbh->bz_start_transaction();
$self->before_read();
# Read Other Database
my $users = $self->users;
my $products = $self->products;
@ -544,6 +545,7 @@ sub write_config {
sub after_insert {}
sub before_insert {}
sub after_read {}
sub before_read {}
#############
# Inserters #
@ -1147,6 +1149,11 @@ and yet shouldn't be added to the initial description of the bug when
translating bugs, then they should be listed here. See L</translate_bug> for
more detail.
=head2 before_read
This is called before any data is read from the "other bug-tracker".
The default implementation does nothing.
=head2 after_read
This is run after all data is read from the other bug-tracker, but