returned by svn list --verbose directory is different from that of svn log directory/sub-dir
The revision returned by svn list is the revision of the on the source-dir instead of the destination-dir
The code below checks to see if the directory at the provided revision exists, if it does it will use this revision.
If the directory does does not exist, try and identify the correct revision using svn log.
*/
final SVNLogEntry log = getMostRecentLogEntry(clientManager, testDefPath + "/" + testDefFile.getRelativePath(), svnRevision);
if (log != null && log.getRevision() != testDefFile.getRevision()) {
// The difference in the log.revision and the list.revision can occur during an ( svn cp )
if (LOGGER.isDebugEnabled()) {
LOGGER.debug("svn log r" + log.getRevision() + " is different than svn list r" + testDefFile.getRevision() + " for " + testDefFile.getURL());
}
testRevision = log.getRevision();
} else {
testRevision = testDefFile.getRevision();
}
tests.add(new TestVersionResult.Test(testName, String.valueOf(testRevision)));