On Wed, 12 Oct 2005, Ph. Marek wrote:
> On Tuesday 04 October 2005 21:58, Peter N. Lundblad wrote:
> - Why is the apply_textdelta-callback called, but nothing done? I'm giving
> /dev/null as source and destination, and strace shows no writes or reads.
>
Because the user of do_status normally want to know if there are text
changes, but not the changes themselves. So apply_text_delta is called to
signal this, and the returned window handler is called once with a NULL
window handler to signal the end of the (empty) delta stream. You can use
svn_delta_noop_window_handler to ignore the windows without having to open
/dev/null or some such.
> - I don't get an "entry:md5" property or some such, but believe that the
> parameter for the close_file callback should be what I want.
>
Yes. What's used for close_file is what svn_fs_file_md5_checksum returns,
so it should be what you want.
> - Is there a way to get the file *size*?
>
>
svn_ra_stat or svn_ra_get_dir. That's a round-trip per directory.
> And BTW, is there an easy way to get a textdelta-stream into a buffer? The
> reverse direction can be done with svn_stream_from_stringbuf(), but I didn't
> find a svn_stream_to_stringbuf or something like that.
>
>
Looks like that is useful for both reading and writing. Have you tried?
Regards,
//Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 12 08:09:28 2005