diff --git a/SourceGithub/SourceGithub.php b/SourceGithub/SourceGithub.php
index 61cc29e..49223c1 100644
--- a/SourceGithub/SourceGithub.php
+++ b/SourceGithub/SourceGithub.php
@@ -319,15 +319,15 @@
$p_json->message, $t_user_id );
foreach( $p_json->added as $t_added ) {
- $t_changeset->files[] = new SourceFile( 0, '', $t_added->filename, 'A' );
+ $t_changeset->files[] = new SourceFile( 0, '', $t_added->filename, 'ADD' );
}
foreach( $p_json->removed as $t_removed ) {
- $t_changeset->files[] = new SourceFile( 0, '', $t_removed->filename, 'D' );
+ $t_changeset->files[] = new SourceFile( 0, '', $t_removed->filename, 'RM' );
}
foreach( $p_json->modified as $t_modified ) {
- $t_changeset->files[] = new SourceFile( 0, '', $t_modified->filename, 'M' );
+ $t_changeset->files[] = new SourceFile( 0, '', $t_modified->filename, 'MOD' );
}
$t_changeset->bugs = Source_Parse_Buglinks( $t_changeset->message );
diff --git a/SourceSFSVN/SourceSFSVN.php b/SourceSFSVN/SourceSFSVN.php
index 2c969c9..fbae1b5 100644
--- a/SourceSFSVN/SourceSFSVN.php
+++ b/SourceSFSVN/SourceSFSVN.php
@@ -232,7 +232,14 @@
$t_state = 3;
} else {
if ( preg_match( '/^\s+([a-zA-Z])\s+([\S]+)/', $t_line, $t_matches ) ) {
- $t_file = new SourceFile( $t_changeset->id, '', $t_matches[2], $t_matches[1] );
+ switch( $t_matches[1] ) {
+ case 'A': $t_action = 'ADD'; break;
+ case 'D': $t_action = 'RM'; break;
+ case 'M': $t_action = 'MOD'; break;
+ default: $t_action = $t_matches[1];
+ }
+
+ $t_file = new SourceFile( $t_changeset->id, '', $t_matches[2], $t_action );
$t_changeset->files[] = $t_file;
# Branch-checking
diff --git a/SourceSFSVN/lang/strings_english.txt b/SourceSFSVN/lang/strings_english.txt
index e0465f9..b85230b 100644
--- a/SourceSFSVN/lang/strings_english.txt
+++ b/SourceSFSVN/lang/strings_english.txt
@@ -15,7 +15,7 @@
$s_plugin_SourceSFSVN_title = 'Subversion / SourceForge Integration';
$s_plugin_SourceSFSVN_description = 'Adds Subversion integration to the Source plugin framework using SourceForge.net.';
-$s_plugin_SourceSFSVN_svn = 'Subversion (SourceForge)';
+$s_plugin_SourceSFSVN_svn = 'SourceForge SVN';
$s_plugin_SourceSFSVN_websvn_url = 'WebSVN URL
(With trailing slash)';
$s_plugin_SourceSFSVN_websvn_name = 'WebSVN Name
(Repository directory)';
$s_plugin_SourceSFSVN_websvn_path = 'WebSVN Path
(From repository root)';
diff --git a/SourceWebSVN/SourceWebSVN.php b/SourceWebSVN/SourceWebSVN.php
index a4d12b4..6af3f8f 100644
--- a/SourceWebSVN/SourceWebSVN.php
+++ b/SourceWebSVN/SourceWebSVN.php
@@ -246,7 +246,14 @@
$t_state = 3;
} else {
if ( preg_match( '/^\s+([a-zA-Z])\s+([\S]+)/', $t_line, $t_matches ) ) {
- $t_file = new SourceFile( $t_changeset->id, '', $t_matches[2], $t_matches[1] );
+ switch( $t_matches[1] ) {
+ case 'A': $t_action = 'ADD'; break;
+ case 'D': $t_action = 'RM'; break;
+ case 'M': $t_action = 'MOD'; break;
+ default: $t_action = $t_matches[1];
+ }
+
+ $t_file = new SourceFile( $t_changeset->id, '', $t_matches[2], $t_action );
$t_changeset->files[] = $t_file;
# Branch-checking
diff --git a/SourceWebSVN/lang/strings_english.txt b/SourceWebSVN/lang/strings_english.txt
index b60cc7d..ead4076 100644
--- a/SourceWebSVN/lang/strings_english.txt
+++ b/SourceWebSVN/lang/strings_english.txt
@@ -15,7 +15,7 @@
$s_plugin_SourceWebSVN_title = 'Subversion / WebSVN Integration';
$s_plugin_SourceWebSVN_description = 'Adds Subversion integration to the Source plugin framework using the WebSVN app.';
-$s_plugin_SourceWebSVN_svn = 'Subversion (WebSVN)';
+$s_plugin_SourceWebSVN_svn = 'WebSVN';
$s_plugin_SourceWebSVN_websvn_url = 'WebSVN URL
(With trailing slash)';
$s_plugin_SourceWebSVN_websvn_name = 'WebSVN Name
(Repository directory)';
$s_plugin_SourceWebSVN_websvn_path = 'WebSVN Path
(From repository root)';