git/vcs-svn
David Barr 7a75e661c5 vcs-svn: implement text-delta handling
Handle input in Subversion's dumpfile format, version 3.  This is the
format produced by "svnrdump dump" and "svnadmin dump --deltas", and
the main difference between v3 dumpfiles and the dumpfiles already
handled is that these can include nodes whose properties and text are
expressed relative to some other node.

To handle such nodes, we find which node the text and properties are
based on, handle its property changes, use the cat-blob command to
request the basis blob from the fast-import backend, use the
svndiff0_apply() helper to apply the text delta on the fly, writing
output to a temporary file, and then measure that postimage file's
length and write its content to the fast-import stream.

The temporary postimage file is shared between delta-using nodes to
avoid some file system overhead.

The svn-fe interface needs to be more complicated to accomodate the
backward flow of information from the fast-import backend to svn-fe.
The backflow fd is not needed when parsing streams without deltas,
though, so existing scripts using svn-fe on v2 dumps should
continue to work.

NEEDSWORK: generalize interface so caller sets the backflow fd, close
temporary file before exiting

Signed-off-by: David Barr <david.barr@cordelta.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: David Barr <david.barr@cordelta.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
2011-05-26 02:28:04 -05:00
..
fast_export.c vcs-svn: implement text-delta handling 2011-05-26 02:28:04 -05:00
fast_export.h vcs-svn: implement text-delta handling 2011-05-26 02:28:04 -05:00
LICENSE Merge branch 'db/delta-applier' into db/text-delta 2011-05-26 02:27:48 -05:00
line_buffer.c vcs-svn: make buffer_read_binary API more convenient 2011-03-27 22:37:05 -05:00
line_buffer.h vcs-svn: make buffer_read_binary API more convenient 2011-03-27 22:37:05 -05:00
line_buffer.txt vcs-svn: remove buffer_read_string 2011-03-26 00:17:35 -05:00
repo_tree.c Merge branch 'db/svn-fe-code-purge' into svn-fe 2011-05-26 02:12:14 -05:00
repo_tree.h Merge branch 'db/svn-fe-code-purge' into svn-fe 2011-05-26 02:12:14 -05:00
sliding_window.c vcs-svn: learn to maintain a sliding view of a file 2011-03-27 20:23:32 -05:00
sliding_window.h vcs-svn: learn to maintain a sliding view of a file 2011-03-27 20:23:32 -05:00
svndiff.c vcs-svn: let deltas use data from preimage 2011-03-28 00:33:48 -05:00
svndiff.h vcs-svn: skeleton of an svn delta parser 2011-03-27 22:41:38 -05:00
svndump.c vcs-svn: implement text-delta handling 2011-05-26 02:28:04 -05:00
svndump.h vcs-svn: Check for errors from open() 2010-11-24 14:51:42 -08:00