[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn patch adds extra 0A character at the end of the line

From: Stefan Sperling <stsp_at_elego.de>
Date: Mon, 28 Nov 2011 17:16:56 +0100

On Mon, Nov 28, 2011 at 04:53:11PM +0100, Peter Balogh wrote:
> Hi,
>
> I'm trying to apply patches with svn patch.
> The patches were created on the same linux box, where I apply them.
> After applying the following diff:
> Index: 3.txt
> ===================================================================
> --- 3.txt (revision 27)
> +++ 3.txt (revision 28)
> @@ -1 +1 @@
> -3
> \ No newline at end of file
> +34
> \ No newline at end of file
>
> the pached file contains an extra 0A character after the last character.
> Am I doing something wrong, or is it an svn patch issue?

This is a known issue. A fix exists and might just about make the 1.7.2
release if it gets enough review. Else, it will probably show up in 1.7.3.

This command outputs the patch to fix the problem in 1.7.1:
svn diff https://svn.apache.org/repos/asf//subversion/branches/1.7.x@r1206728 https://svn.apache.org/repos/asf//subversion/branches/1.7.x-issue3991@r1206745
Received on 2011-11-28 17:17:38 CET

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.