Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to avoid mixed eol-styles in a svn repository

Is there a best practice for preventing mixed eol-styles in a subversion repository.

I know that svn:eol-style=native can be set as an auto-prop, but I would have to ensure that it was set for all committers. I'm also reluctant to do a retrospective, repository-wide change of svn:eol-style if there is a less invasive solution.

like image 747
Ken Avatar asked Mar 24 '10 17:03

Ken


1 Answers

Note that as of SVN 1.8 you can set up auto-props for entire trees within your repository (including at the top level), which finally fixes this issue independent of client-side config.

See the following for more details:

  • The relevant part of the SVN 1.8 release notes
  • The entry on auto properties in svnbook (I'd advise you read about inheritable properties too, which is in the section immediately above)
  • A useful article on Apache's wiki about the subject, complete with examples for eol-style
like image 151
Alastair Maw Avatar answered Oct 05 '22 12:10

Alastair Maw