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

Re: Ignore / override svn:eol-style=native while checkout / update

From: Andrey Repin <anrdaemon_at_freemail.ru>
Date: Mon, 6 Jul 2009 22:05:38 +0400

Greetings, B. Smith-Mannschott!

>> I recently encountered an issue with svn:eol-style set to native.
>> While checking out / updating, svn changes all the files with property
>> svn:eol-style=native the line endings to CRLF since I'm using Windows,
>> the problem is that I also use Cygwin tools to build projects, and the
>> shell script interpreter sh only recognize LF as the line ending as in
>> *nix systems, the extra CRs are treated as error. So my current
>> solution is to change all the files the line endings back to its
>> original using dos2unix...

> Don't use svn:eol-style=native for *nix shell scripts, use
> svn:eol-style=LF instead.

MAC is considered a *nix environment, but it uses CR instead of LF due to
historical reasons.
"Don't use" is not very helpful suggestion, unfortunately :(

> That way they'll always have LF line
> endings, regardless of which platform/client is in use when they are
> checked out. I would hope that anyone editing *nix shell scripts on
> windows is competent enough to use an editor other than notepad.

Agree in this specific case... as i'm in the same boat as OP (Cygwin et all)

--
WBR,
 Andrey Repin (anrdaemon_at_freemail.ru) 06.07.2009, <22:03>
Sorry for my terrible english...
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2368468
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-06 20:12:39 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.