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

SVN patch IGNORES file without newline at end of file

From: cz02 <cz02_at_cdak.net>
Date: Mon, 15 Oct 2012 21:12:09 +0200

Please verify this bug report:

I have two identical files aaa.txt and bbb.txt except that aaa.txt has
no "newline at end of file".

When applying a patch (created with svn diff > p.patch) my modifications
for aaa.txt are simply ignored with no error or warning!

> svn patch p.patch
U bbb.txt

If I remove the line "\ No newline at end of file" from the patch file
and apply it again (after reverting), everything works as expected:

> svn patch p2.patch
U aaa.txt
U bbb.txt

To reproduce simply create an empty repository and add aaa.txt and
bbb.txt then try to apply the patches.
Sample files attached.

OS: Windows 7 sp1
svn, version 1.7.7 (r1393599) - by SilkSVN
     compiled Oct 8 2012, 10:42:55

I tried to get this verified on the users group but only found out that
the issue does not exist on Unix - might be a Windows only bug.

thanks,
Christian Zangl

  • application/x-zip-compressed attachment: trunk.zip
Received on 2012-10-16 07:52:21 CEST

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

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