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

Re: Creating a self-compressed svndiff from a file...

From: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2006-10-27 03:34:11 CEST

On Wed, Oct 25, 2006 at 08:38:32PM -0400, John Szakmeister wrote:
> Can anyone provide some pointers on the functions I need to call to get a self-compressed svndiff stream for a file? I'm trying to fix someone's repository, but I can't seem to get anything converted into an svndiff stream. I called svn_txdelta_to_svndiff2() to get the window handler and baton, then I called svn_txdelta_target_push() to get a writable stream. But when I write to it, nothing comes out. :-( Any tips would be extremely helpful!
>

That should work fine, though you'll need to send SVN_DELTA_WINDOW_SIZE
bytes (100k) of target data before you get any output (or close the
target stream, of course). I assume you're passing svn_stream_empty()
as the source stream for svn_txdelta_target_push()?

Regards,
Malcolm

  • application/pgp-signature attachment: stored
Received on Fri Oct 27 03:34:26 2006

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.