diff --git a/SourceSFSVN/SourceSFSVN.php b/SourceSFSVN/SourceSFSVN.php index e736efe..b2a352b 100644 --- a/SourceSFSVN/SourceSFSVN.php +++ b/SourceSFSVN/SourceSFSVN.php @@ -174,7 +174,6 @@ return $this->process_svn_log( $p_repo, $t_svnlog ); } - } function import_full( $p_event, $p_repo ) { @@ -239,6 +238,7 @@ $t_state = 0; $t_svnline = str_pad( '', 72, '-' ); + $t_changesets = array(); $t_changeset = null; $t_comments = ''; $t_count = 0; @@ -254,8 +254,8 @@ # Changeset info } elseif ( 1 == $t_state && preg_match( '/^r([0-9]+) \| (\w+) \| ([0-9\-]+) ([0-9:]+)/', $t_line, $t_matches ) ) { if ( !is_null( $t_changeset ) ) { - $t_changeset->bugs = Source_Parse_Buglinks( $t_changeset->message ); $t_changeset->save(); + $t_changesets[] = $t_changeset; } $t_user_id = user_get_id_by_name( $t_matches[2] ); @@ -320,10 +320,10 @@ } if ( !is_null( $t_changeset ) ) { - $t_changeset->bugs = Source_Parse_Buglinks( $t_changeset->message ); $t_changeset->save(); + $t_changesets[] = $t_changeset; } - return true; + return $t_changesets; } } diff --git a/SourceWebSVN/SourceWebSVN.php b/SourceWebSVN/SourceWebSVN.php index 3f1818d..5e4ceb5 100644 --- a/SourceWebSVN/SourceWebSVN.php +++ b/SourceWebSVN/SourceWebSVN.php @@ -196,7 +196,6 @@ return $this->process_svn_log( $p_repo, $t_svnlog ); } - } function import_full( $p_event, $p_repo ) { @@ -261,6 +260,7 @@ $t_state = 0; $t_svnline = str_pad( '', 72, '-' ); + $t_changesets = array(); $t_changeset = null; $t_comments = ''; $t_count = 0; @@ -276,8 +276,8 @@ # Changeset info } elseif ( 1 == $t_state && preg_match( '/^r([0-9]+) \| (\w+) \| ([0-9\-]+) ([0-9:]+)/', $t_line, $t_matches ) ) { if ( !is_null( $t_changeset ) ) { - $t_changeset->bugs = Source_Parse_Buglinks( $t_changeset->message ); $t_changeset->save(); + $t_changesets[] = $t_changeset; } $t_user_id = user_get_id_by_name( $t_matches[2] ); @@ -342,10 +342,10 @@ } if ( !is_null( $t_changeset ) ) { - $t_changeset->bugs = Source_Parse_Buglinks( $t_changeset->message ); $t_changeset->save(); + $t_changesets[] = $t_changeset; } - return true; + return $t_changesets; } }