Skip to content

Commit aef5d21

Browse files
committed
Fix SVN dirty detection
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.
1 parent 4796b7d commit aef5d21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/net/nemerosa/versioning/svn/SVNInfoService.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class SVNInfoService implements SCMInfoService {
8383
def dirtyEntry = statuses.find { entry ->
8484
def path = (entry.file.absolutePath - dir.absolutePath)
8585
if (path && !path.startsWith('/userHome')) {
86-
return (entry.nodeStatus != SVNStatusType.UNCHANGED && entry.nodeStatus != SVNStatusType.STATUS_EXTERNAL) || (entry.propertiesStatus != SVNStatusType.UNCHANGED)
86+
return !(entry.nodeStatus == SVNStatusType.UNCHANGED && entry.propertiesStatus == SVNStatusType.UNCHANGED) && entry.nodeStatus != SVNStatusType.STATUS_EXTERNAL
8787
} else {
8888
return false
8989
}

0 commit comments

Comments
 (0)