Re: Using perl to delta large files
From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2005-05-03 17:27:47 CEST
On May 3, 2005, at 9:49 AM, David Gwyn wrote:
> I am writing a perl script to submit deltas. My current code runs out
I don't know the SVN::TxDelta:: API, but I do know the C API. You're
Here's the official instructions on how to send txdeltas using C, taken
To SEND textdeltas
1. txdelta_stream = svn_txdelta (source_stream, target_stream);
2. Get window handler to do something with delta. If using an
window_consumer_func = editor->apply_textdelta (file_baton);
If you want raw vcdiff data for embedding in XML or HTTP
window_consumer_func = svn_txdelta_to_vcdiff (txdelta_stream);
3. Loop until there are no more windows:
txdelta_window = svn_txdelta_next_window (txdelta_stream);
Be sure to call window_consumer_func with a NULL window when there
4. svn_txdelta_free (txdelta_stream);
---------------------------------------------------------------------
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.