Connecting with CVS

If you have any 'mechanical' forge related issues/suggestions, pop them in here.
Post Reply
User avatar
MindXing
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Aug 29, 2005 1:34 pm
Location: Anthem, AZ, USA
Contact:

Connecting with CVS

Post by MindXing » Fri Aug 18, 2006 2:59 pm

I am having problems getting my project setup with CVS.  The problem seems to be that I can't connect to the forge cvs server.

I am using Cygwin bash and the cvs that comes with Cygwin.  Of course, this is on a windows box. 

From the command line I try:

cvs -d:ext:[email protected]:/cvsroot/unregister checkout unregister

Since I haven't done the intial import for my project I don't expect it to give me any files.  Instead I'm expecting a message telling me that there isn't any module.

However, the command seems to timeout.  After about 1 minute I get a message back saying:

cvs.exe [checkout aborted]: end of file from server (consult above messages if any)

Error, CVS operation failed


It looks like a connection problem.  I am able to ping scm.joomla.org just fine.  It's just that all of the CVS commands fail.  I use CVS on a daily basis with other projects (and other servers) so I'm mostly familiar with how it works once it's setup.  I'm just having problems getting the thing setup to start with.

As far as I know I don't have any firewalls turned on on my box but I suspect that my ISP has a firewall.

Thanks for any help.

_M_
Mike Noel: http://www.vnoel.com

"If I find in myself a desire which no experience in this world can satisfy, the most probable explanation is that I was made for another world." -- C.S. Lewis

User avatar
MindXing
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Aug 29, 2005 1:34 pm
Location: Anthem, AZ, USA
Contact:

Re: Connecting with CVS

Post by MindXing » Tue Aug 22, 2006 3:16 pm

Hmm.  No repsonses on this.  So either my questions was really silly or no one has seen this sort of problem before.  Is anyone still using CVS?  Maybe I should just move my repository over to SVN.  Since I don't have any code in it yet that might be the easiest solution.

_M_
Mike Noel: http://www.vnoel.com

"If I find in myself a desire which no experience in this world can satisfy, the most probable explanation is that I was made for another world." -- C.S. Lewis

User avatar
Tonie
Joomla! Ace
Joomla! Ace
Posts: 1585
Joined: Thu Aug 18, 2005 7:13 am
Contact:

Re: Connecting with CVS

Post by Tonie » Tue Aug 22, 2006 7:10 pm

Which project are you trying to connect to? Am currently not using CVS, but can install TortoiseCVS to try it out.
Antonie de Wilde - Forum admin

User avatar
MindXing
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Aug 29, 2005 1:34 pm
Location: Anthem, AZ, USA
Contact:

Re: Connecting with CVS

Post by MindXing » Tue Aug 22, 2006 7:38 pm

I'm trying to connect to the unregister project.  I'm trying to do the initial import.

_M_
Mike Noel: http://www.vnoel.com

"If I find in myself a desire which no experience in this world can satisfy, the most probable explanation is that I was made for another world." -- C.S. Lewis

User avatar
Tonie
Joomla! Ace
Joomla! Ace
Posts: 1585
Joined: Thu Aug 18, 2005 7:13 am
Contact:

Re: Connecting with CVS

Post by Tonie » Tue Aug 22, 2006 9:12 pm

This is what I get, so at least it was being to resolve my name/password combination. Don't know what to expect after this, as I've never used CVS before.

cvs.exe" "-q" "-Q" "co" "-c" CVSROOT=:ext:[email protected]:/cvsroot/unregister

Success, CVS operation completed

cvs.exe" "-q" "-Q" "ls" "-q" "/" CVSROOT=:ext:[email protected]:/cvsroot/unregister

cvs.exe [ls aborted]: server does not support ls

Error, CVS operation failed
Antonie de Wilde - Forum admin

User avatar
MindXing
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Aug 29, 2005 1:34 pm
Location: Anthem, AZ, USA
Contact:

Re: Connecting with CVS

Post by MindXing » Thu Aug 24, 2006 1:13 pm

Thanks for looking at this Tonie.  I tried using the same cmds you used but still got connection timeout issues.  I started playing around with WinCVS (since it was already installed on my system -- I should look into tortoiseCVS) and I stumbled across this:

cvs -d :ext:[email protected]:/cvsroot/unregister import -I ! -I CVS -m "no message" cvsroot/unregister avendor arelease

It didn't work in WinCVS but I tried it from bash and it worked.  Yeah!

I also set the CVS_RSH variable to ssh.  I don't know if that's necessary or not. 

Now I have to figure out how to convince CVS to quit asking for my password on each operation...

_M_
Mike Noel: http://www.vnoel.com

"If I find in myself a desire which no experience in this world can satisfy, the most probable explanation is that I was made for another world." -- C.S. Lewis

User avatar
Tonie
Joomla! Ace
Joomla! Ace
Posts: 1585
Joined: Thu Aug 18, 2005 7:13 am
Contact:

Re: Connecting with CVS

Post by Tonie » Thu Aug 24, 2006 1:27 pm

Good to hear that you are at least getting somewhere. This was the first time with CVS in any form for me, so I'm pretty much stumbling here. You might want to download the Forge user guide, it is on the start page on the left menu. In this, CVS is also mentioned, including the setup of SSH if I'm not mistaken (don't have it right here now).
Antonie de Wilde - Forum admin

User avatar
MindXing
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Aug 29, 2005 1:34 pm
Location: Anthem, AZ, USA
Contact:

Re: Connecting with CVS

Post by MindXing » Thu Aug 24, 2006 3:16 pm

Ah yes, I see it in there now.  I couldn't find it earlier...

Thanks for the pointer.

_M_
Mike Noel: http://www.vnoel.com

"If I find in myself a desire which no experience in this world can satisfy, the most probable explanation is that I was made for another world." -- C.S. Lewis

arash_archer
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Fri Sep 29, 2006 7:00 am

Re: Connecting with CVS

Post by arash_archer » Sun Oct 01, 2006 12:47 pm

hi
did your problem solved?
i had have same problem 3 days ago and as i did not find the way, i used the svn .
i can use svn now but as i as first had a same problem with svn, i've got that you must pay attention that if you use svn,
the address is not scm.joomla.org/svnroot/your-project
but is scm.joomla.org/svn/repos/your-projectr

so i think there is same thing about cvs.
am i think right?

User avatar
MindXing
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Mon Aug 29, 2005 1:34 pm
Location: Anthem, AZ, USA
Contact:

Re: Connecting with CVS

Post by MindXing » Sun Oct 01, 2006 2:13 pm

I haven't figured out how to set it up so it doesn't ask me for my password each time but I didn't get CVS working.  I'm using bash (cygwin) and command line commands.  Once I did the initial import and checkout the entries in the CVS dir in my source code keeps everything working.

I used the following cmd to import:

cvs -d :ext:[email protected]:/cvsroot/unregister import -I ! -I CVS -m "no message" cvsroot/unregister avendor arelease

"unregister" is the name of the module I was importing.

In a new directory I did the check out with:

cvs -d :ext:[email protected]:/cvsroot/unregister checkout cvsroot/unregister

Once that was done I had a workable src folder.  From that folder I can issue update and commit commands using the format:

cvs update
cvs commit -m "

As I stated above, the files in the CVS dir (the dir called "CVS"), make it all work smoothly.  I think they use the "Root" file in that folder to set the correct values for connecting to the server so I don't have to add the -d :ext:myuser@scm... part to each cmd.

Hope that helps.

_M_
Mike Noel: http://www.vnoel.com

"If I find in myself a desire which no experience in this world can satisfy, the most probable explanation is that I was made for another world." -- C.S. Lewis


Post Reply