diff --git a/SourceSVN/SourceSVN.php b/SourceSVN/SourceSVN.php index b56ac3b..ef93f46 100644 --- a/SourceSVN/SourceSVN.php +++ b/SourceSVN/SourceSVN.php @@ -12,7 +12,7 @@ $this->name = plugin_lang_get( 'title' ); $this->description = plugin_lang_get( 'description' ); - $this->version = '0.18'; + $this->version = '0.19'; $this->requires = array( 'MantisCore' => '1.2.0', 'Source' => '0.16', @@ -394,7 +394,8 @@ $t_changeset = new SourceChangeset( $p_repo->id, (integer)$t_entry['revision'], '', $t_str_date, (string)$t_entry->author, ''); # files - foreach( $t_entry->paths->path as $t_path ) { + if(isset($t_entry->paths->path)){ + foreach( $t_entry->paths->path as $t_path ) { switch( (string)$t_path['action'] ) { case 'A': $t_action = 'add'; break; case 'D': $t_action = 'rm'; break; @@ -437,6 +438,10 @@ } } # end is_blank( $t_changeset->branch ) if } # end files in revision ($t_path) foreach + } else { # no file paths set + $t_changeset->branch = $t_trunk_path; + } + # get the log message $t_changeset->message = (string)$t_entry->msg; diff --git a/SourceWebSVN/SourceWebSVN.php b/SourceWebSVN/SourceWebSVN.php index f989f94..cfde3ba 100644 --- a/SourceWebSVN/SourceWebSVN.php +++ b/SourceWebSVN/SourceWebSVN.php @@ -12,7 +12,7 @@ $this->name = lang_get( 'plugin_SourceWebSVN_title' ); $this->description = lang_get( 'plugin_SourceWebSVN_description' ); - $this->version = '0.17'; + $this->version = '0.18'; $this->requires = array( 'MantisCore' => '1.2.0', 'Source' => '0.16', diff --git a/SourceWebSVN/lang/strings_english.txt b/SourceWebSVN/lang/strings_english.txt index d8f89fc..94ec0dd 100644 --- a/SourceWebSVN/lang/strings_english.txt +++ b/SourceWebSVN/lang/strings_english.txt @@ -13,3 +13,10 @@ $s_plugin_SourceWebSVN_websvn_name = 'WebSVN Name
(Repository directory)'; $s_plugin_SourceWebSVN_websvn_path = 'WebSVN Path
(From repository root)'; +$s_plugin_SourceWebSVN_svn_username = 'WebSVN Username'; +$s_plugin_SourceWebSVN_svn_password = 'WebSVN Password'; +$s_plugin_SourceWebSVN_standard_repo = 'Standard Repository
(trunk/branches/tags)'; +$s_plugin_SourceWebSVN_trunk_path = 'Trunk Path
(Non-standard repository)'; +$s_plugin_SourceWebSVN_branch_path = 'Branch Path
(Non-standard repository)'; +$s_plugin_SourceWebSVN_tag_path = 'Tag Path
(Non-standard repository)'; +$s_plugin_SourceWebSVN_ignore_paths = 'Ignore Other Paths
(Non-standard repository)';