Re: Joining javacvs developers

Martin Entlicher <[email protected]> Thu, 11 Sep 2003 18:33:02 +0200
Newsgroups gmane.comp.java.netbeans.modules.javacvs.devel
Organization Sun Microsystems
Message-ID <[email protected]>
Hi Rami,

Ojares Rami EINT wrote:
> 
> Hi,
> 
> I have been using javacvs library and had to modify it a bit.
> Now I am wondering how could I merge my improvements back to
> main development line.

Please create a patch and submit it into Issuezilla as a PATCH (see
http://www.netbeans.org/community/contribute/patches.html). Or make a zip of
the sources and upload it at contrib.netbeans.org (as described at
http://www.netbeans.org/community/contribute/modules.html).

> 
> I have changed a bit here and there but what comes to my mind first
> is CVSROOT class.
> 
> It seems clear that there is a lot confusion about the
> semantics of CVSURL.

Well, somewhere at cvshome.org, I've found this definition:
[:method:][[user][:password]@]hostname[:[port]]/path/to/repository

The parsing algorithm just follows this structure.

> 
> For example what does server connection type refer to?
> Is it a plain socket connection without the authentication of pserver?
> 
> Here is my current understanding:
> 
> >:local:/repo/si/tory & /repo/si/tory
> start cvs server without any sockets.

Yes. This is how it is described in CVS manuals.

> 
> :server:@host:port/repo/si/tory
> take a socket connection to host without authentication and
> start cvs server
> 
> :pserver:username@host:port/repo/si/tory
> take a socket connection to host with pserver authentication
> and start cvs server
> 
> :ext:username@host:port/repo/si/tory
> take ssh connection to host and start cvs server

This is controlled through CVS_RSH env variable. When CVS_RSH=ssh, then ssh
connection should be established.

> >
> There is a need to be as compatible with Root files
> that other cvs clients make and there you might have some
> other method for ext but this is my best approximation.

Yes. Eclipse uses :extssh: or something like that, but this is not
understandable to other clients. We should use the standard connection methods
IMHO. :ext: is mostly used with ssh anyway.

> 
> I am trying to check existing urls and trying to recognize which
> method to use.

Currently the CVS library can work just with :pserver: anyway. :server: should
work as well, but it probably was not tested.

> 
> Also I have implemented SSHConnection using SSHTools from
> http://3sp.com/
> Could that be of interest?

Wow, we're certainly interested. There's issue #25148 submitted for this. It
would be very helpful for the javacvs project if you can contribute the ssh
connection.

I've downloaded j2ssh-0.2.4. It is dual licensed - Apache like license and
LGPL. Thus it should not be a big problem to include this into NetBeans
distribution.

Thank you,
Martin

> 
> - Rami Ojares / Elisa Internet
> 
> ----------------------------------
> Man Plans, God Laughs
>     --European Proverb
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]