Thread (28 messages) 28 messages, 3 authors, 2016-06-15

Re: [PATCH 7/7] svn-fe: Use the --report-fd feature

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:49:46

Sverre Rabbelier wrote:
On Tue, Oct 12, 2010 at 15:50, David Barr [off-list ref] wrote:
quoted
On one hand, this makes the interface much uglier.
Can you quantify this? What does it make uglier, and why?
| -svnadmin dump --incremental REPO | svn-fe [url] | git fast-import
| +mkfifo backchannel &&
| +svnadmin dump --incremental REPO |
| +	svn-fe [url] 3<backchannel |
| +	git fast-import --report-fd=3 3>backchannel

The caller has to take care of backflow of data.  Even if the
"cat" command were never used, at least 3>/dev/null would be
necessary to avoid fast-import waiting forever for the frontend
to read from it.

One way to work around this would be for svn-fe to launch fast-import
itself.  The main downside is that that would require a way to
configure how fast-import is to be launched (for use with other
vcs-fast-import backends and in even stranger scenarios).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help