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