Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: Re: svn properties

Re: svn properties

From: Dominik Riebeling <dominik.riebeling_at_gmail.com>
Date: Thu, 17 Jun 2010 21:14:48 +0200

On Thu, Jun 17, 2010 at 8:58 PM, Rafaël Carré <rafael.carre_at_gmail.com> wrote:
>> - set all source files to svn:eol-style=LF except files that need
>> CRLF.
>
> Ok, but how is this different from saving the file with LF and removing
> svn:eol-style prop ?

without svn:eol-style subversion doesn't handle line endings at all.
With svn:eol-style set subversion will automatically convert line
endings to the desired style. I'm not sure if you have to enable
something for subversion to warn on wrong / mixed line endings while
committing, but the small test I just did showed it clearly that it
gets converted automatically. I.e. I've committed a file with CRLF but
svn:eol-style set to LF. After committing the file had the (intended)
LF line endings.

In other words, _if_ you _always_ commit files with LF line endings
and not set svn:eol-style the behaviour is identical. But as we're
living in a real world it will always eventually happen that a file
gets committed using the wrong line ending style by accident. At least
in an environment where people work on Linux and Windows.


 - Dominik
Received on 2010-06-17

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy