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

Re: Checking out code to UNIX server, EOL issues.

From: Stefan KŁng <tortoisesvn_at_gmail.com>
Date: 2006-06-09 13:42:51 CEST

Anders RÝnningen wrote:
>> You can tell Subversion (this is a Subversion issue, not TSVN) what
>> EOL marker style to use with the svn:eol-style property. If you set
>> it to "native", the EOL markers will be set upon checkout to whatever
>> is native to the OS you're performing the checkout on (this helps
>> "solve" a lot of conflicts). Other values, and a fuller explanation
>> are found in the SVN book (http://svnbook.org)
> So that means that if I check out from XP, the files will get cr+lf ending. If I
> then edit in an editor that doesn't change eol, and check in with TSVN, then
> chances are I won't screw up the repository?

No, the repository will be just fine. Even better: if you have set the
svn:eol-style property, Subversion will take care of 'fixing' your file
if your editor screwed up the EOL's in the file. For example, if your
editor decides to write the file with LF style instead of CRLF as you've
set with the property, then Subversion will
* throw an error when you try to commit the file ("inconsistend EOL style")
* fix the EOL's when you do a cleanup.


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Fri Jun 9 13:43:01 2006

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.