As I did posted a previous post with this problem I see that the post was
deleted and is unreachable from nable. So I would like to post it again and
to respond to alexander.

The problem:

...
String filePath =
"/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/OutInAxisOperation.java";
long rev = repo.getLatestRevision();

// this print "file" which means the file exist at latest revision
System.out.println(repo.checkPath(filePath, rev);

// this will print the latest revision of file at filePath
repo.getFile(filePath, rev, null, System.out);

// this causes problem: ... is not a file in revision (exception message)
repo.getFileRevisions(filePath, null, rev - 1, rev);

This is a strange beahaviour because some days before I used the same code
and it worked fine.
Now, if I use the same code for another svn repository (let say
http://java-diff-utils.googlecode.com/svn/trunk/ and a file path
src/difflib/DiffUtils.java the code will work fine) so does this
mean this an ASF's repository problem?

To Alexander:
I already did try svn cat -r HEAD filePath and it worked fine.
-- 
View this message in context: 
http://old.nabble.com/SVNRepository.getFileRevisions%28%29-problems-tp32657699p32657699.html
Sent from the SVNKit - Users mailing list archive at Nabble.com.


Reply via email to