Networking Forums

Networking Forums > Computer Networking > Linux Networking > cvs question

Reply
 
 
Nikhil
Guest
Posts: n/a

 
      04-18-2008, 04:20 PM
I work on a remote repository and the way I access is using ssh. With
CVS, everytime I need to pass this option called 'CVS_RSH' to set the
ssh binary and then can run any cvs operations.

This is sometimes irritating as to I need to remember to set this
variable everytime in my shell(I use hell a lot of terminals).

One way that I thought of was keep a wrapper over the cvs binary itself
which will automatically set the CVS_RSH variable for me or even an
alias would do.

This is kind of per user benefit, what if there are multiple people
working on the same lines of repository access and all have to set their
CVS_RSH variable? Remembering and typing an extra on the commandline
is irky.

I am not a sysadmin, so I cannot do change the system wide cvs binary
changes but I imagine this can be done in .cvsrc file . I know this as
well is a user wide setting, but atleast it would avoid me to type an
extra on the command line.

Any ideas?

Regards,
Nikhil
 
Reply With Quote
 
 
 
 
David Schwartz
Guest
Posts: n/a

 
      04-18-2008, 08:12 PM
On Apr 18, 9:20 am, Nikhil <Nik...@nik.com> wrote:
> I work on a remote repository and the way I access is using ssh. With
> CVS, everytime I need to pass this option called 'CVS_RSH' to set the
> ssh binary and then can run any cvs operations.
>
> This is sometimes irritating as to I need to remember to set this
> variable everytime in my shell(I use hell a lot of terminals).
>
> One way that I thought of was keep a wrapper over the cvs binary itself
> which will automatically set the CVS_RSH variable for me or even an
> alias would do.
>
> This is kind of per user benefit, what if there are multiple people
> working on the same lines of repository access and all have to set their
> CVS_RSH variable? Remembering and typing an extra on the commandline
> is irky.
>
> I am not a sysadmin, so I cannot do change the system wide cvs binary
> changes but I imagine this can be done in .cvsrc file . I know this as
> well is a user wide setting, but atleast it would avoid me to type an
> extra on the command line.
>
> Any ideas?


Have your login shell set it in your environment. I use 'bash' so I
added the following line to the '.bash_profile' file in my home
directory:
export CVS_RSH=ssh

DS
 
Reply With Quote
 
Nico Kadel-Garcia
Guest
Posts: n/a

 
      04-18-2008, 11:47 PM
Nikhil wrote:
> I work on a remote repository and the way I access is using ssh. With
> CVS, everytime I need to pass this option called 'CVS_RSH' to set the
> ssh binary and then can run any cvs operations.
>
> This is sometimes irritating as to I need to remember to set this
> variable everytime in my shell(I use hell a lot of terminals).
>
> One way that I thought of was keep a wrapper over the cvs binary itself
> which will automatically set the CVS_RSH variable for me or even an
> alias would do.
>
> This is kind of per user benefit, what if there are multiple people
> working on the same lines of repository access and all have to set their
> CVS_RSH variable? Remembering and typing an extra on the commandline
> is irky.
>
> I am not a sysadmin, so I cannot do change the system wide cvs binary
> changes but I imagine this can be done in .cvsrc file . I know this as
> well is a user wide setting, but atleast it would avoid me to type an
> extra on the command line.
>
> Any ideas?
>
> Regards,
> Nikhil


Write yourself a local little shell script, called 'cvsssh' or something like
that. Put it in your $HOME/bin directory, which is usually in your PATH
environment variable, and enjoy.

Then explain to your upstream source control repository that CVS should be
shot like a rabid dog, and they should update to Subversion, at least, if not
git if they have time to get even better tools.
 
Reply With Quote
 
mnikhil@gmail.com
Guest
Posts: n/a

 
      04-20-2008, 02:52 PM
On Apr 19, 4:47*am, Nico Kadel-Garcia <nka...@gmail.com> wrote:
> Nikhilwrote:
> > I work on a remote repository and the way I access is using ssh. With
> >CVS, everytime I need to pass this option called 'CVS_RSH' to set the
> > ssh binary and then can run anycvsoperations.

>
> > This is sometimes irritating as to I need to remember to set this
> > variable everytime in my shell(I use hell a lot of terminals).

>
> > One way that I thought of was keep a wrapper over thecvsbinary itself
> > which will automatically set the CVS_RSH variable for me or even an
> > alias would do.

>
> > This is kind of per user benefit, what if there are multiple people
> > working on the same lines of repository access and all have to set their
> > *CVS_RSH variable? *Remembering and typing an extra on the commandline
> > is irky.

>
> > I am not a sysadmin, so I cannot do change the system widecvsbinary
> > changes but I imagine this can be done in .cvsrc file . I know this as
> > well is a user wide setting, but atleast it would avoid me to type an
> > extra on the command line.

>
> > Any ideas?

>
> > Regards,
> >Nikhil

>
> Write yourself a local little shell script, called 'cvsssh' or something like
> that. Put it in your $HOME/bin directory, which is usually in your PATH
> environment variable, and enjoy.
>
> Then explain to your upstream source control repository thatCVSshould be
> shot like a rabid dog, and they should update to Subversion, at least, if not
> git if they have time to get even better tools.



Actually yes... but CVS is what I have to live with. Although I have
put an alias over cvs command for myself, no wrapper, no explicit
exporting of variable.
but I was more curious if there is any sorts to do with .cvsrc file if
not, if not it brings up a question for an RFE into cvs ... right ;-) ?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Skip the PW question: I got that, question now about "Home" Tim Wilson Network Routers 1 12-31-2005 04:01 AM
Switch Question - restate previous question w/no subject SEAN J Windows Networking 2 11-30-2005 02:42 PM
Dell 2300 TrueMobile router question/ general wireless question Craig Wireless Internet 2 01-11-2004 06:26 PM



1 2 3 4 5 6 7 8 9 10 11