Skip to content

Commit

Permalink
Fix SVN dirty detection
Browse files Browse the repository at this point in the history
The previous test for the dirty state was flawed and detected externals
always as dirty. Use a test for the clean state instead and invert to
receive the required value for the filter criteria.
  • Loading branch information
sodevel committed Jul 28, 2021
1 parent 4796b7d commit aef5d21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class SVNInfoService implements SCMInfoService {
def dirtyEntry = statuses.find { entry ->
def path = (entry.file.absolutePath - dir.absolutePath)
if (path && !path.startsWith('/userHome')) {
return (entry.nodeStatus != SVNStatusType.UNCHANGED && entry.nodeStatus != SVNStatusType.STATUS_EXTERNAL) || (entry.propertiesStatus != SVNStatusType.UNCHANGED)
return !(entry.nodeStatus == SVNStatusType.UNCHANGED && entry.propertiesStatus == SVNStatusType.UNCHANGED) && entry.nodeStatus != SVNStatusType.STATUS_EXTERNAL
} else {
return false
}
Expand Down

0 comments on commit aef5d21

Please sign in to comment.