How to use CVS from Eclipse without SSH?

J

John

Hi,

I often create a cvsroot directory on my localfile system so I can
version control my source files.

In Eclipse I have to have a CVSROOT that includes a hostname so it can
use SSH. Why can't I just specify a path:

I want this:

$ cvs -d /opt/cvsroot checkout blah

Not this:

$ cvs -d :ext:localhost:/opt/cvsroot checkout blah

Why? Because I shouldn't need ssh and when I'm on a windows box I don't
always have an ssh server installed.

THANKS!
John
 
T

Tor Iver Wilhelmsen

John said:
In Eclipse I have to have a CVSROOT that includes a hostname so it can
use SSH. Why can't I just specify a path:

Not so it can use SSH: Only one of the three connection types
(pserver, ext, extssh) uses SSH. But a server is needed.

What you want is a non-CVS revision history plugin. Search for any
ecplipse plugins for the task, don't try to morph the CVS plugin into
what it's not.
 
U

Uwe Seimet

John said:
In Eclipse I have to have a CVSROOT that includes a hostname so it can
use SSH. Why can't I just specify a path:

I want this:

$ cvs -d /opt/cvsroot checkout blah

Not this:

$ cvs -d :ext:localhost:/opt/cvsroot checkout blah

Why? Because I shouldn't need ssh and when I'm on a windows box I don't
always have an ssh server installed.

I have solved it (under Linux, but an analogous solution should also be
possible on Windows, at least with cygwin) like this:

1. Specifiy the "ext" connection type in the CVS repository settings.
2. Enter the repository path as it appears in your local filesystem,
e.g. /opt/cvsroot.
3. Create a shell script like this:

#!/bin/sh
shift 4 # Just throw away the first four arguments
exec cvs ${1+"$@"} # call cvs with the remaining arguments

make it executable and save it, e.g. as extcvs.sh

4. In the eclipse preferences go to Team->CVS->Ext Connection Method and
enter the full path of extcvs.sh in the CVS_RSH input field.

That's it. Works like a charm for me.
 
F

Frank

Uwe said:
John wrote:




I have solved it (under Linux, but an analogous solution should also be
possible on Windows, at least with cygwin) like this:

1. Specifiy the "ext" connection type in the CVS repository settings.
2. Enter the repository path as it appears in your local filesystem,
e.g. /opt/cvsroot.
3. Create a shell script like this:

#!/bin/sh
shift 4 # Just throw away the first four arguments
exec cvs ${1+"$@"} # call cvs with the remaining arguments

make it executable and save it, e.g. as extcvs.sh

4. In the eclipse preferences go to Team->CVS->Ext Connection Method and
enter the full path of extcvs.sh in the CVS_RSH input field.

That's it. Works like a charm for me.

Or just switch to subversion, which works fine with local repositories.
-- <http://subversion.tigris.org/>
 
U

Uwe Seimet

Frank said:
Or just switch to subversion, which works fine with local repositories.
-- <http://subversion.tigris.org/>

Is subclipse already mature enough to work reliably under Unix/Linux and
with Eclipse 3.1? The last time I tried it did not work for me, but this
was some time ago.
What I hope is that subversion support will become a core feature of
Eclipse, just like CVS support.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top