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

Re: Re: calling dosunix at a newline mismatch

From: <qazwart_at_gmail.com>
Date: Tue, 18 Nov 2008 20:58:53 +0000

On Nov 18, 2008 12:45pm, thomas dettbarn <dettus_at_dettus.net> wrote:
> So the problem is that you are using a text editor that is not obeying
the line
> ending style in the files, and the solution is to fix the editor. :)
>
>
> no, the problem is that i am checking out files under linux and edit them
> under windows. or vice versa.

So, that's your problem! In this case, you should set eol-style to
either "LF" or "CRLF", and not native. When you set it as native, it checks
out the file according to the line endings of the system you're checking
out from. If you set it to "CRLF" or "LF", then it would do the checkout
with that particular line ending character despite the system you're using.

I just ran a test, and if I set svn:eol-style to either "CRLF" or "LF", I
could not get the inconsistent line ending error. However, if I set it
to "native", it wouldn't let me commit the file without fixing the line
endings.

A good editor is VIM which works the same on Unix and Windows and can
handle line ending issues without a problem. Other development editors work
only on either the Unix/Linux platform or Windows.
Received on 2008-11-18 21:59:14 CET

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.