I'm using the svnClientAdapter API in my application (with JavaHL
underneath). Most of the functionality works great but I need help on the
1. Basically what I want to do is to get the contents of a file at a
specific revision. So for example, if a file has path
http://mysvn/myrepo/mydir1/mydir2/file1.c in revision 200 of the repository,
I want to get the contents of this file at revision 99. I did not find a way
through the API to do this directly. It seems that the only way is to get
the path of the file at revision 99, and then call getContents() method with
the discovered path and revision 99. There isn't an API method to find the
path of a file at a specific revision either.
What I'm doing right now is to get the complete revision history of the file
(along with changed paths), and then parse the information in changed paths
to figure out the path at a specific revision. Although this works for me,
it has a performance overhead since I'm getting the whole revision history
(and changed paths too).
Any help or advice would be greatly appreciated.
Received on 2008-11-18 18:50:42 CET