Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-01-2006, 11:40 AM   #1
Registered: Oct 2005
Location: Hungary
Distribution: FC6 , freeBSD
Posts: 87

Rep: Reputation: 15
Problems with lineseparator when doing cvs checkout.

Hi All!

I need to access a cvs repository stored on a Debian server. I need to login via ssh on a port differs from the standard ssh port, 22. Unfortunately I have to do this from a Windoze client. I tried an awful lot of windoze cvs clients, but each of them have some weaknesses. I faced against two problems :
1. Most of the clients can only use the standard ssh port. I cannot reconfigure it.
2. If a client lets me use non-standard port, e.g 2222, comes the other problem: It can't handle the differences between Unix/Windows line-endings, thus all of my source files I check out from the repo have an additional empty line after each line.

My question is : Are there any cvs options to handle this stuff, or would the client has to solve that on its own?

Any help would be appreciated!
Old 06-02-2006, 03:48 AM   #2
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Not sure about your question, but you might be able to use the unix2dos program (standard with most distros, I think...) to get rid of the extra lines / or just fix the line breaks.

Using ssh, do

unix2dos ...

on the file that has the problem. I'm guessing you can do this recursively on the Debian machine on the whole cvs directory, just look at

man unix2dos

As far as I know CVS files are just the same text files as the actual code, with some reference info inside, so I'm guessing unix2dos will work. Windows will then treat the files better as regards linebreaks, and Linux apps usually can handle both types transparently. This should include CVS.
Old 06-02-2006, 04:26 AM   #3
Registered: Oct 2005
Location: Hungary
Distribution: FC6 , freeBSD
Posts: 87

Original Poster
Rep: Reputation: 15
Hi again!

I found a solution... I write it down, maybe it can be somewhat useful if anybody take a look at my post...

The problem was that I imported my project from a directory which was mapped into windoze. Windoze write the files into that directory, but I imported the files under linux. So my files were at some confusing state --as they were under linux in the windoze format-- before the import.
When I imported them again from my windoze client everything went just fine.
Anyway, I don't know if this would make some troubles if I would checkout them on a Linux client. I haven't tested that so far.

Hope it can be useful if anyone have the same problem.

Old 06-02-2006, 04:31 AM   #4
Registered: Oct 2005
Location: Hungary
Distribution: FC6 , freeBSD
Posts: 87

Original Poster
Rep: Reputation: 15
Thanks rylan76!

That also works. Because the code is only managed under Windoze, for now, the method I mentioned is enough.
Anyway, that's good to know about other solutions.
Who knows what trouble windoze will do in the future...



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
CVS: checkout and module name pacionet Linux - Software 1 05-11-2006 10:19 AM
Document Checkout? kemplej Linux - Software 1 03-09-2006 07:19 PM
cvs checkout on slackware 8.1 rolandp Linux - Software 1 06-30-2005 01:20 AM
Checkout these firefox video ads reddazz General 3 05-13-2005 02:16 AM
CVS produces read-only files on checkout gepesz Linux - Software 1 07-01-2004 04:50 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration