Permalink
Browse files

Plugin SourceWebSVN : fix wrong comparison of SourceChangeset action …

…field

Possible values of this field are:
'add' for file added
'rm' for file remove
'mod' for file modified
'mv' for move
  • Loading branch information...
1 parent 2045d54 commit deba255e873879791c339c4efb5e46cef95f2d34 @jeckyhl jeckyhl committed Feb 28, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 SourceWebSVN/SourceWebSVN.php
@@ -131,7 +131,7 @@ public function url_changeset( $p_repo, $p_changeset ) {
}
public function url_file( $p_repo, $p_changeset, $p_file ) {
- if ( $p_file->action == 'D' ) {
+ if ( $p_file->action == 'rm' ) {
return '';
}
@@ -143,7 +143,7 @@ public function url_file( $p_repo, $p_changeset, $p_file ) {
}
public function url_diff( $p_repo, $p_changeset, $p_file ) {
- if ( $p_file->action == 'D' || $p_file->action == 'A' ) {
+ if ( $p_file->action == 'rm' || $p_file->action == 'add' ) {
return '';
}

2 comments on commit deba255

Owner

dregad replied Feb 28, 2013

Wouldn't this apply to SourceSFSVN.php too ?

sure it does

Please sign in to comment.