[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: Nathan Kidd <nathan-svn_at_spicycrypto.ca>
Date: 2006-06-09 18:17:19 CEST

Stefan Küng wrote:
> 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.

My understanding is the OP wanted to keep his working copy on Linux
using LF line endings but checkout/update/edit on Windows. He asked

> Is there a way to make TSVN know that it is checking out files to
> a UNIX filesystem, so that it doesn't use cr+lf?

to which the answer is No. You cannot specify the type of line ending
you want for the checkout. Setting the svn:eol-style property will
automatically set the line ending *based on the platform the client runs
on*, but this is not what the OP wants.

I think the only way to achieve what the OP wants is keep all files with
LF in the repository, do *NOT* set svn:eol-style property, and use, as
he said, editiors that preserve the original file line endings.

-Nathan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Fri Jun 9 18:17:12 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.