You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Daniel Shahaf <d....@daniel.shahaf.name> on 2011/04/01 13:14:41 UTC

Re: minimalist example of svn_txdelta_run?

Clifford Yapp wrote on Thu, Mar 31, 2011 at 13:52:32 -0400:
> On Thu, Mar 31, 2011 at 1:45 PM, Daniel Shahaf <d....@daniel.shahaf.name> wrote:
> 
> > The first thing to say is that you aren't checking the error return
> > values.  Try compiling with -DSVN_DEBUG --- that will cause an abort()
> > if you missed an error return.
> 
> I know - this is in the "quick and dirty" category, so I'll have to go
> back later and deal with that.
> 
> > That's all that jumps out at me right now :(.   If I had to learn this API
> > I'd do so by writing a dummy C test --- eg in subversion/tests/libsvn_{fs,delta}/ ---
> > which is also where you might be able to find a 'minimal example'.
> 
> Ah, thanks!  I hadn't thought of the tests dir - I'm building a subset
> of subversion with CMake, so I missed those.
> 
> I managed to get the changed I need into the files with a full on copy
> of the contents, which is somewhat suboptimal but workable for small
> files.
> 

Fair enough.  Feel free to post again later if you'll need pointers on
generating/applying non-self-compressed svndiff deltas, though.

> Cheers, and thanks again.
> 
> CY