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
Received on 2013-04-06 20:42:55 CEST