[cvsnt] how to disable line ending translations?

Arkadiusz Miskiewicz arekm at maven.pl
Thu Oct 23 09:06:08 BST 2008

Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.

On Thursday 23 of October 2008, Arthur Barrett wrote:
> Arkadiusz,
> > How to disable line endings translations ? It's very annoying feature
> > especially when trying to commit patches into cvs repository
> > (changed line
> > endings == patch no longer applies).
> It sounds as though you are trying to use a unix/linux patch tool on
> windows or mac.  

I'm linux (server) - linux (client).

> If you must use a unix/linux patch tool then use CVSNT on unix/linux to
> check out the file and then use unix/linux to patch the file and commit
> it back. 

The problem happens when I want to commit file (that file is a patch) with 
crlf line endings but cvsnt converts that to lf thus breaking the patch file.

Now you could ask why the patch has crlf line endings inside. That's because 
source files that the patch is going to be applied to have crlf line ending 

> As Bo/Luigi have pointed out - there are ways to get text files out of
> CVSNT server with different line endings, but the procedure will vary
> depending if the file should *always* have unix/linux line endings or if
> you just need them to have the 'wrong' line endings once because you've
> got a broken patch tool.

What I'm trying to archieve is to stop cvsnt from doing any line ending 
conversions "by default" because it has no way to know when such conversion 
is sane and when it's not.

About my setup:
cvsnt- as server

cvsnt- as client
cvs-1.12.13 as client

all on linux.

> Arthur Barrett

Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/

More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook