Skip to content
This repository was archived by the owner on Oct 6, 2023. It is now read-only.

Commit 0ba07e4

Browse files
committed
added modification to SVN validation check to attempt to retrieve at least
MOST RECENT log entry, to avoid slowdown requesting very large logs from legacy projects Signed-off-by: Neal Ensor <[email protected]>
1 parent c570d3d commit 0ba07e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/gov/osti/repository/SubversionRepository.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static boolean isValid(String url) {
2929
SVNURL repoUrl = SVNURL.parseURIEncoded(url);
3030
repository = SVNRepositoryFactory.create(repoUrl);
3131

32-
Collection logs = repository.log(new String[] { "" }, null, 0, -1, true, true);
32+
Collection logs = repository.log(new String[] { "" }, null, -1, -1, true, true);
3333

3434
// if we have some sort of log entry (even initial import), we are valid
3535
return !logs.isEmpty();

0 commit comments

Comments
 (0)