bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: different CVS_SERVER for different hosts


From: Mihai Bazon
Subject: Re: different CVS_SERVER for different hosts
Date: 29 Oct 2003 11:28:58 +0200

On Wed, 2003-10-29 at 09:28, Mark D. Baushke wrote:
> You must live in a very chaotic world to have so many choices for
> CVS_SERVER.

Actually I have only one "odd-ball" machine and the rest work with
default "cvs".  But even so, it was convincing enough..

> and then all I needed to do was remember to use 'cvs2' instead of
'cvs'
> for the commands to do the right thing...

... exactly what I wanted to avoid.

> Then, I could use M-x use-cvs2 RET to switch to the other CVS_SERVER
> and M-x use-cvs RET to return to the default setting.

whoa, that's ugly.

> I am not sure that is the best design path to follow.

Indeed, it's not.  My implementation is a dirty hack that only allows
per-directory alternate for CVS_SERVER.  But we could have a .cvsconfig
file that had more options that override ~/.cvsrc.  Flexibility is
good.  Look at ssh, for instance--you can set some defaults, but you can
also set different parameters for each host, in ~/.ssh/config.  I'm sure
that some guy at some point thought that it wouldn't be useful, but I
actually find it is ;-)

> Feel free to post it, someone may google for your patch in the future

Thanks, here it is (attached).  It's diff from rsh-client.c rev. 1.6. 
Tested on Linux only and it appears to be working fine; the function
that starts the remote shell is sort of duplicated for OS/2, but I can't
test my changes there.

Cheers,
-- 
Mihai Bazon,
http://dynarch.com/mishoo/   [ applied W3 ]

Attachment: rsh-client.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]