diff --git a/SourceSFSVN/SourceSFSVN.php b/SourceSFSVN/SourceSFSVN.php index d5a27aa..b5fba9d 100644 --- a/SourceSFSVN/SourceSFSVN.php +++ b/SourceSFSVN/SourceSFSVN.php @@ -184,20 +184,6 @@ $this->check_svn(); $svn = $this->svn_call( $p_repo ); - $t_url = $p_repo->url; - $t_svnlog = explode( "\n", `$svn log -v $t_url` ); - - return $this->process_svn_log( $p_repo, $t_svnlog ); - } - - function import_latest( $p_event, $p_repo ) { - if ( 'sfsvn' != $p_repo->type ) { - return; - } - - $this->check_svn(); - $svn = $this->svn_call( $p_repo ); - $t_changeset_table = plugin_table( 'changeset', 'Source' ); $t_max_query = "SELECT revision FROM $t_changeset_table @@ -212,6 +198,14 @@ return $this->process_svn_log( $p_repo, $t_svnlog ); } + function import_latest( $p_event, $p_repo ) { + if ( 'sfsvn' != $p_repo->type ) { + return; + } + + return $this->import_full( $p_event, $p_repo ); + } + function check_svn() { if ( is_blank( `svn help` ) ) { trigger_error( ERROR_GENERIC, ERROR ); diff --git a/SourceWebSVN/SourceWebSVN.php b/SourceWebSVN/SourceWebSVN.php index 48f4863..39afd37 100644 --- a/SourceWebSVN/SourceWebSVN.php +++ b/SourceWebSVN/SourceWebSVN.php @@ -206,20 +206,6 @@ $this->check_svn(); $svn = $this->svn_call( $p_repo ); - $t_url = $p_repo->url; - $t_svnlog = explode( "\n", `$svn log -v $t_url` ); - - return $this->process_svn_log( $p_repo, $t_svnlog ); - } - - function import_latest( $p_event, $p_repo ) { - if ( 'svn' != $p_repo->type ) { - return; - } - - $this->check_svn(); - $svn = $this->svn_call( $p_repo ); - $t_changeset_table = plugin_table( 'changeset', 'Source' ); $t_max_query = "SELECT revision FROM $t_changeset_table @@ -234,6 +220,14 @@ return $this->process_svn_log( $p_repo, $t_svnlog ); } + function import_latest( $p_event, $p_repo ) { + if ( 'svn' != $p_repo->type ) { + return; + } + + return $this->import_full( $p_event, $p_repo ); + } + function check_svn() { if ( is_blank( `svn help` ) ) { trigger_error( ERROR_GENERIC, ERROR );