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

Re: SVN patch IGNORES file without newline at end of file

From: Joshua Woodward-Clarke <jaxxa90_at_gmail.com>
Date: Wed, 17 Oct 2012 13:17:03 +1100

I just tried it and can confirm that I am getting the same issue.
(I am fairly new to SVN so I may have done somthing wrong)

I am running Win XP SP3.

I downloaded the files and tried applying the patches.
I tried with with the TortoiseSVN "apply patch" and "svn patch" from the
command line.

Both time the first patch "p.patch" failed to do any changed to aaa.txt
(only bbb.txt), while "p2.patch" changed both files.

Jaxxa

On Fri, Oct 12, 2012 at 9:00 PM, cz02 <cz02_at_cdak.net> wrote:

> On 2012-10-11 21:14, Stefan Sperling wrote:
>
>> I cannot reproduce this problem on unix with the files you've provided.
>> Both patches apply find (tested both svn from trunk and 1.7.6.
>> I don't have a 1.7.7 build handy right now, so I cannot test that,
>> but I suspect that trunk should have the same problem if it exists.
>>
>
> 1.7.6 has the problem as well.
>
>
> Maybe this bug only happens on Windows?
>>
>
> That's possible, could someone else try this on Windows?
>
>
> Do you have any svn:eol-style properties set on these files?
>> If so, what are the property values? If not, does adding an
>> svn:eol-style property fix this problem?
>>
>
> No eol-style was set.
>
> I tried to set it but the output of patch did not change:
>
> svn propset svn:eol-style CRLF *.txt
>>
> property 'svn:eol-style' set on 'aaa.txt'
> property 'svn:eol-style' set on 'bbb.txt'
>
>
> svn patch p.patch
>>
> U bbb.txt
>
>
Received on 2012-10-17 04:17:57 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.