]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 871473: New code hook "before_read" in Migrate.pm
authorrojanu <aliustek@gmail.com>
Tue, 23 Jul 2013 09:15:29 +0000 (11:15 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 23 Jul 2013 09:15:29 +0000 (11:15 +0200)
r=LpSolit a=sgreen

Bugzilla/Migrate.pm

index 6f3570fd3c9c72bcee21c9e410e9c1da07e63c1c..db5db4712685b9a882dafbdf8132a1cfd028423e 100644 (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