summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Migrate.pm
diff options
context:
space:
mode:
authorrojanu <aliustek@gmail.com>2013-07-23 11:15:29 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2013-07-23 11:15:29 +0200
commit927f0c3a1f719d83ae959c715e1a26e562e6aacb (patch)
tree451d6b4afcddf1d75d9c9bea1ae7e7efd8171f57 /Bugzilla/Migrate.pm
parent452860219dfb42a3e50feb9ce87df2986b90d7e7 (diff)
downloadbugzilla-927f0c3a1f719d83ae959c715e1a26e562e6aacb.tar.gz
bugzilla-927f0c3a1f719d83ae959c715e1a26e562e6aacb.tar.xz
Bug 871473: New code hook "before_read" in Migrate.pm
r=LpSolit a=sgreen
Diffstat (limited to 'Bugzilla/Migrate.pm')
-rw-r--r--Bugzilla/Migrate.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/Migrate.pm b/Bugzilla/Migrate.pm
index 6f3570fd3..db5db4712 100644
--- a/Bugzilla/Migrate.pm
+++ b/Bugzilla/Migrate.pm
@@ -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