Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ok, it was my mistake. Some how I missed to uncomment the EOLStyleFromMimeTypeSetter() when migrating from cvs2svn. It is a week ago almost, and many changes has been commited, so a new migration is not an option.

What do I do now? I have manually set the property svn_eol-style to native on some projects, but only in trunk (IDEA helps me here doing it recursively). It takes a long time, and still I am missing all the branches.

Any good ideas?

The repository is placed on a linux.

share|improve this question

Batch modifying line endings and then committing is a bad plan as it will break every single diff that spans across that diff. A better plan would be to dump your svn repository from your conversion, redo the conversion and reimport your dump.

Make sure you make a backup of your repository first.

Find out the first subversion commit revision number after you did the conversion. Use this number where I use

# svnadmin dump -r<revision>:HEAD repository > repository.dump

redo your conversion

# svnadmin load repository < repository.dump

You may find that this invalidates people's working copies, so warn them to commit changes first before you do the conversion.

You may also want to do this on a test copy of your repository first to make sure it works.

share|improve this answer

Something like

find * -type f | fgrep -v .svn/ | xargs -d '\n' dos2unix


find * -type f | fgrep -v .svn/ | xargs -d '\n' svn propset [...]

comes to mind. (With probably a few more greps in between.)

share|improve this answer
This is possibly more invasive than re-indenting code. Anyone browsing the history will hate you for doing this. – David Pashley Oct 7 '09 at 13:26
It automates what he was already doing by hand. I agree that another method may be preferable. – reinierpost Oct 15 '09 at 12:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.