From 09771e1bd7fe3a96be25f834f95f8a865d57a6ba Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Tue, 23 Jul 2013 09:30:46 +0000 Subject: [PATCH] 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 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/Bugzilla/Migrate.pm | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index e6dbd65127a..4f672858bed 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -8654 \ No newline at end of file +8655 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/Migrate.pm b/mozilla/webtools/bugzilla/Bugzilla/Migrate.pm index 6f3570fd3c9..db5db471268 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Migrate.pm +++ b/mozilla/webtools/bugzilla/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 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