Hello,

I think SVNLogClient.doAnnotate is the method you need.
ISVNAnnotateCallback will be fed back with the file contents at each
revision.

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
http://hg4j.com/ - Java Mercurial Library!
http://sqljet.com/ - Java SQLite Library!



On 25 September 2011 02:54, vligu <[email protected]> wrote:
>
> I have a very simple question.
>
> I have one file in a SVN repository and I want:
>
> 1) find out what is the first revision the file was created
> 2) what is the last revision of the file
> 3) to get deltas of this file from first revision to last revision. At first
> revision (when file is created) probably it
> is empty or have some contents. At second revision I want to get its delta
> (diff between file at revision 0 to 1). At third revision diff between
> revisions 1 t0 2). I can get diff by calling DiffClient.doDiff but the
> problem is: if the file has been modified 1000 times then I have to call
> 1000 times doDiff() which is not so efficient. Is there a smart way, let say
> a method like List<Diff> getDiffsInRevisionRange(String path, long startR,
> endR)?
> --
> View this message in context: 
> http://old.nabble.com/Get-contents-of-a-file-at-specified-revision%2C-SVNKit-tp32503910p32503910.html
> Sent from the SVNKit - Users mailing list archive at Nabble.com.
>
>
>

Reply via email to