git-commit-vandalism/contrib/svn-fe
David Barr 41529bbce4 vcs-svn: set up channel to read fast-import cat-blob response
Set up some plumbing: teach the svndump lib to pass a file descriptor
number to the fast_export lib, representing where cat-blob/ls
responses can be read from, and add a get_response_line helper
function to the fast_export lib to read a line from that file.

Unfortunately this means that svn-fe needs file descriptor 3 to be
redirected from somewhere (preferrably the cat-blob stream of a
fast-import backend); otherwise it will fail:

	$ svndump <path> | svn-fe
	fatal: cannot read from file descriptor 3: Bad file descriptor

For the moment, "svn-fe 3</dev/null" works as a workaround but it
will not work for very long.  A fast-import backend that can retrieve
old commits is needed in order to be able to fulfill svn
"Node-copyfrom-rev" requests that refer to revs from a previous run.

[jn: with new change description]

Based-on-patch-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: David Barr <david.barr@cordelta.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
2011-03-07 01:43:57 -06:00
..
.gitignore contrib/svn-fe: Add the svn-fe target to .gitignore 2010-08-03 06:49:22 -07:00
Makefile contrib/svn-fe: Fix IncludePath 2010-08-03 06:49:20 -07:00
svn-fe.c vcs-svn: Check for errors from open() 2010-11-24 14:51:42 -08:00
svn-fe.txt vcs-svn: set up channel to read fast-import cat-blob response 2011-03-07 01:43:57 -06:00