[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[Subclipse-users] Issue using svnClientAdapter API

From: Bharat Khatri <bharatkhatri_at_gmail.com>
Date: Tue, 18 Nov 2008 11:50:31 -0600

I'm using the svnClientAdapter API in my application (with JavaHL
underneath). Most of the functionality works great but I need help on the
following issue:

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.

Thanks

Bharat Khatri
Received on 2008-11-18 18:50:42 CET

This is an archived mail posted to the Subclipse Users mailing list.