On 06/10/2018 17:35, Ben Franksen wrote:
> Hm. That means if --all is in effect, but not --allow-hijack, and
> the selected patches include one which has a different author, then
> the command just fails with an error message? I can live with that.
I hadn't thought about it like that, but given that --all and
--no-interactive are aliases, it seems reasonable. There may be
parallels in how darcs push handles conflicting patches at the remote
end (I can't remember the details off the top of my head).
> Another alternative would be to lift the restriction that we can't
> interact with the remote darcs. The reason for that is that stdin is
> used to send the bundle. One way around that could be to use scp or
> rsync to transfer the bundle to a temporary remote location e.g.
> <remoterepo>/_darcs/tmp and then invoke the remote darcs with the
> file name as argument. However that means we no longer stream the
> bundle, which is a shame.
>
> In principle, programs can open streams like stdin, and receive
> input from that (in a thread) while keeping stdin open as well.
> However, it is unclear to me how another program can send data to
> this other stream from the outside.
I don't have a strong view on this, though I agree streaming is a nice
property to have.
Ganesh
|