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

Re: fixing files committed with wrong eol-style

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: Tue, 13 Jul 2010 07:31:03 -0500

Nico Kadel-Garcia wrote:
> On Tue, Jul 13, 2010 at 3:46 AM, Giulio Troccoli
> <Giulio.Troccoli_at_uk.linedata.com> wrote:
>>> Hello,
>>>
>>> Without the "svn:eol-style" property any file content is
>>> considered as binary.
>>> At that point, checkouted files on Windows and Linux have "CR-LF" eol.
>> ASAIK this is not true. Subversion has a clever way to tell whether a file is text or binary by looking at the file itself. I believe that you can "trick" Subversion by setting svn:mime-type, although I'm not sure why someone would want to treat a binay file as text or vice-versa.
>
> Subversion supports the use of "pre-commit hooks", that can auto-set
> such properties based on the file name. I usually personally consider
> it a bad idea: changing EOL behind my back as I switch from system to
> system is nasty, especially when my files are on a shared directory
> that may be used on both Windows and UNIX style systems.

Errr... Shared directories are the bad idea here. Svn is perfectly capable of
managing a copy for everyone and text files are not portable.

-- 
   Les Mikesell
    lesmikesell_at_gmail.com
Received on 2010-07-13 14:33:52 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.