tags:

views:

33

answers:

1

I have converted a CVS repository to Mercurial, but the carriage returns are converted from CRLF (Windows style) to LF (Unix style). However, I want CRLFs in the repository! I realise that you can combat this problem with Mercurial extensions win32text and eol. But I would really prefer to have the repository converted with CRLFs in the first place.

I would like to hear if anyone has succeeded in this endeavour!

+1  A: 

Hrm, I've not heard people say it does that before, but I've never tried to put CRLF in a repo before either. I'd guess it's not the mercurial convert doing the line ending change so much as it's the cvs export tool that it chains off to. I

Try using cvs2svn or cvs2git as an intermediary step as recommended here: http://mercurial.selenic.com/wiki/RepositoryConversion#CVS

Ry4an