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

Re: Mixed Unix-Windows development

From: Andrey Repin <anrdaemon_at_freemail.ru>
Date: Sun, 17 May 2009 13:54:37 +0400

Greetings, Andrey Repin!

>> As I've read in the SVNbook (red-bean)
>> http://svnbook.red-bean.com/en/1.5/svn.advanced.props.file-portability.html#svn.advanced.props.special.eol-style
>> - I can tune Subversion so, that when our code is committed under Windows -
>> CR-LF will be translated to LF, so Unix developers will be happy.

>> I can select the commit mode: to keep CR-LF in the code forever, to keep LF
>> forever or to use "native" line endings.

> No, seriously, you got it absolutely wrong.
> It does not commit what, it check out what.
> If you set svn:eol-style to native your checkouts will have line-endings
> native to the system you've checked it out, but what is stored in SVN is a
> whole different question, not related to your issue.

>> It was very pity for me, that all this tuning works only for commit operation,
>> not for checkout or update.

> You must tell your developers to add files with proper properties (in case -
> svn:eol-style).
> Then it will work as you want.

To further clarify this moment, the svn:mime-type must be text/<whatever>
for svn:eol-style to affect anything.
http://svnbook.red-bean.com/nightly/en/svn-book.html#svn.advanced.props.special.mime-type
Look for the "Warning" block.

--
WBR,
 Andrey Repin (anrdaemon_at_freemail.ru) 17.05.2009, <13:48>
Sorry for my terrible english...
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2290209
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-05-17 11:56:06 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.