git-commit-vandalism/vcs-svn
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
..
fast_export.c vcs-svn: set up channel to read fast-import cat-blob response 2011-03-07 01:43:57 -06:00
fast_export.h vcs-svn: set up channel to read fast-import cat-blob response 2011-03-07 01:43:57 -06:00
LICENSE SVN dump parser 2010-08-14 19:35:38 -07:00
line_buffer.c vcs-svn: allow input errors to be detected promptly 2011-03-07 01:32:51 -06:00
line_buffer.h vcs-svn: allow input errors to be detected promptly 2011-03-07 01:32:51 -06:00
line_buffer.txt vcs-svn: teach line_buffer about temporary files 2011-02-26 04:59:37 -06:00
obj_pool.h Add memory pool library 2010-08-14 19:35:37 -07:00
repo_tree.c vcs-svn: simplify repo_modify_path and repo_copy 2011-03-07 00:56:50 -06:00
repo_tree.h vcs-svn: simplify repo_modify_path and repo_copy 2011-03-07 00:56:50 -06:00
string_pool.c Add string-specific memory pool 2010-08-14 19:35:37 -07:00
string_pool.h Add string-specific memory pool 2010-08-14 19:35:37 -07:00
string_pool.txt Add string-specific memory pool 2010-08-14 19:35:37 -07:00
svndump.c vcs-svn: set up channel to read fast-import cat-blob response 2011-03-07 01:43:57 -06:00
svndump.h vcs-svn: Check for errors from open() 2010-11-24 14:51:42 -08:00
trp.h treap: make treap_insert return inserted node 2010-12-07 16:03:55 -08:00
trp.txt treap: make treap_insert return inserted node 2010-12-07 16:03:55 -08:00