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

Re: CVS update: subversion/subversion/include svn_delta.h

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2001-03-01 04:18:00 CET

> Jim pointed out that I won't be the last person who wants to do
> this, so I thought the prototype above would be a good general
> solution: convert an svn_string_t into a txdelta_stream.

Given our current machinery, what you would prototype would look
something like:

svn_error_t *apply_string_as_delta (svn_string_t *string
                                    svn_txdelta_window_handler_t *handler,
                                    void *baton);

which would do the pushing itself, and then you'd pass the handler and
baton you got from apply_textdelta to that routine.

(You'd have to pick a better function name, though. A pool argument
might be necessary, but I don't think so, since you'd just be
constructing a single window and you could use stack storage for it.)

> Instead, what if we had a func that converted an svn_string_t into a
> *single* window containing a solitary `new' op? Then I could push
> the one window, then push a NULL, and be done.

This would also be fine.
Received on Sat Oct 21 14:36:23 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.