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

RE: bug: diff adding newline at end of file when changing lines

From: <tsvn_at_alagazam.net>
Date: Wed, 21 Jan 2009 07:32:00 -0800 (PST)

>>> i have a problem using "diff" of TortoiseSVN and asked on the
>>> developers mailing list. Since no one responds their i thought about
>>> sending it to the users mailing list.
>>>
>>> I have local modifications in a text file and look at the diff with
>>> TortoiseSVN. Then i select one modified line and choose "Use this
>>> text block" and save the file.
>>>
>>> I would expect that only the selected line should change, but
>>> additionally the saved file now has a newline appended at the end of
>>> the file.
>>>
>>> Is this a known bug or did i make something wrong?
>>> Can someone reproduce this problem?

I still have the original posters problem in TSVN version 1.5.6, Build 14908.

It seems that a bug #336 is filed on this topic and that it's fixed i R8836.
But maybe you just fixed the file loading, and it's the saving that's the problem.

To reproduce this error:
* create a one character text file (without newline)
* copy this file
* select both files in explorer
* do a diff (they are the same, aren't they?)
* right click in the line in the left file and select "Use this whole file" or "Use this text block"
* save the changes using toolbar icon
* refresh using toolbar icon

Now the right hand file has a newline at the end.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=1041324

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-01-21 16:54:27 CET

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

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