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

Re: two questions in the SVN source code

From: Daniel Shahaf <danielsh_at_elego.de>
Date: Sat, 6 Apr 2013 21:42:19 +0300

Bo Chen wrote on Sat, Apr 06, 2013 at 14:33:31 -0400:
> Basically, what I want to do here is to retrieve a certain file from any
> two revisions (directly from the repository), and compute the delta between
> these two file versions. So I need to know first how can I retrieve a
> certain file from any revision of the repository (what functions I can use
> in the current code base? etc.), and how to compute the delta (I may
> directly use the functions in \libsvn_delta\txdelta.c). Do you have any
> suggestion for me?

I think your answer might not be high-level enough.

That said, if you want to compute the delta between two versions, it'll
be easiest to just do what 'svn update' does. svn_ra_do_update2() or
svn_repos_dir_delta2() (but see comments in its doc string) might be
good places to start.

Or you could 'svn cat' twice and then pass the result to an svn_delta.h
function.
Received on 2013-04-06 20:42:55 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.