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

Re: Detecting 'property change only' status with CRLF line endings

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Wed, 11 Mar 2015 19:14:09 +0100

On 11.03.2015 12:40, Timur Khanipov wrote:
> The 'Status' field of the 'Check for modifications' window is able to
> show 'modified (property change only)' value to indicate that file
> content hasn't actually changed. I noticed that sometimes when I
> change only the svn:eol-style property Tortoise fails to detect this
> situation and shows simply 'modified' status instead of 'modified
> (property change only)'. A closer look at the file using 'Compare
> with base' command confirms that nothing changed but svn:eol-style (I
> made sure that line ending changes have not been concealed by
> settings the 'Compare whitespaces' tick).
>
> Experiments revealed that if the original file has LF line endings,
> Tortoise shows status correctly but if it has CRLF line endings,
> Tortoise shows 'modified' instead of 'modified (property change
> only)'. I was able to reproduce this behavior with a repo consisting
> of only two files -- one with LF endings and one with CRLF line
> endings. I am using TortoiseSVN 1.8.10, Build 26129 - 64 Bit.

if you change the svn:eol-style property to something the file does not
have (i.e., the file has CRLF and you set the property to LF), then svn
considers the file contents as modified. Once you commit the property
change, the line endings in the file are automatically adjusted to what
the property says and the file then will show the content status as not
modified anymore.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3104569
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-03-11 19:14:02 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.