Re: [RFE] Make 'svn patch' read from STDIN

2016-02-08 Thread Daniel Shahaf
Bert Huijben wrote on Sun, Feb 07, 2016 at 13:56:12 +0100: > Well.. Perhaps ^D works on your platform, but you will need other keys > on other platforms. If different platforms use different keys then the message can use #ifdef to print the right advice. I expected readers to assume that, at the

Re: [RFE] Make 'svn patch' read from STDIN

2016-02-08 Thread Andreas Scherer
Am Sonntag, 31. Januar 2016, 11:48:26 schrieb Andreas Scherer: > using 'svn patch' directly as a drop-in replacement for [patch] I found an example where 'svn patch' does _not_ behave as expected and differently than 'patch' (and other programmes). When I amend this line https://github.com/as

RE: [RFE] Make 'svn patch' read from STDIN

2016-02-07 Thread Bert Huijben
itself. And given that the diff parse code has to read the file multiple times we will need a tempfile anyway. Bert Sent from Outlook Mail for Windows 10 phone From: Daniel Shahaf Sent: zondag 7 februari 2016 01:22 To: Andreas Scherer; dev@subversion.apache.org Subject: Re: [RFE] Make 'svn

Re: [RFE] Make 'svn patch' read from STDIN

2016-02-06 Thread Daniel Shahaf
Stefan Sperling wrote on Mon, Feb 01, 2016 at 10:51:39 +0100: > On Sun, Jan 31, 2016 at 11:48:26AM +0100, Andreas Scherer wrote: > > I suggest to extend 'svn patch' so that it supports usage in a pipe like > > > > gzip -dc patch-0042.gz | svn patch -P patch-0042 - > > > > This would permit us

Re: [RFE] Make 'svn patch' read from STDIN

2016-02-01 Thread Andreas Scherer
Am Montag, 1. Februar 2016, 13:01:58 schrieb Stefan Sperling: > What does -P do? I cannot seem to find it in documentation for BSD patch, > GNU patch, git apply, and svn patch. Mwa culpa: this option belongs to 'quilt' and is not related to 'svn patch'. signature.asc Description: This is a digital

Re: [RFE] Make 'svn patch' read from STDIN

2016-02-01 Thread Stefan Sperling
On Mon, Feb 01, 2016 at 12:44:38PM +0100, Andreas Scherer wrote: > Am Montag, 1. Februar 2016, 10:51:39 schrieb Stefan Sperling: > > So we could consider extending svn patch to run without a path argument > > and read the patch from stdin. > > > > [...] this feature falls squarly into the domain o

Re: [RFE] Make 'svn patch' read from STDIN

2016-02-01 Thread Andreas Scherer
Am Montag, 1. Februar 2016, 10:51:39 schrieb Stefan Sperling: > So we could consider extending svn patch to run without a path argument > and read the patch from stdin. > > [...] this feature falls squarly into the domain of the command line client > and not the API. > > Also, I think we should p

Re: [RFE] Make 'svn patch' read from STDIN

2016-02-01 Thread Stefan Sperling
On Sun, Jan 31, 2016 at 11:48:26AM +0100, Andreas Scherer wrote: > I suggest to extend 'svn patch' so that it supports usage in a pipe like > > gzip -dc patch-0042.gz | svn patch -P patch-0042 - > > This would permit using 'svn patch' directly as a drop-in replacement for > >gzip -dc pat

[RFE] Make 'svn patch' read from STDIN

2016-01-31 Thread Andreas Scherer
I suggest to extend 'svn patch' so that it supports usage in a pipe like gzip -dc patch-0042.gz | svn patch -P patch-0042 - This would permit using 'svn patch' directly as a drop-in replacement for gzip -dc patch-0042.gz | patch An example use case is the '%autosetup -S [SCM]' feature of