[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_at_cdak.net>
Date: Thu, 11 Oct 2012 12:22:51 +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

thanks,
Christian Zangl

  • application/x-zip-compressed attachment: trunk.zip
Received on 2012-10-11 12:36:07 CEST

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.