[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Overriding CVS/Root with pserver
From: |
Larry Jones |
Subject: |
Re: Overriding CVS/Root with pserver |
Date: |
Thu, 1 May 2003 12:53:52 -0400 (EDT) |
Ed writes:
>
> Ah. I see this can be done with 'cvs -d $CVSROOT login', 'cvs -d $CVSROOT
> update', etc. Would it break other things in CVS for commands to pay
> attention to the $CVSROOT setting without the user having to specify it on
> the command line?
It wouldn't break things in CVS, but it would break a lot of user's
expectations. The search order for a root is first the command line,
then the CVS/Root file, then $CVSROOT. That allows you to have working
directories that have been checked out from different repositories and
CVS just works right without having to change $CVSROOT depending on
which directory you're working with. Even better, you can have a single
directory tree where different subdirectories come from different
repositories and CVS works correctly, changing its root as it changes
directories.
-Larry Jones
OK, there IS a middle ground, but it's for sissy weasels. -- Calvin