[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple Repositories on a server
From: |
Mike Castle |
Subject: |
Re: Multiple Repositories on a server |
Date: |
Wed, 7 Feb 2001 17:58:11 -0800 |
User-agent: |
Mutt/1.3.6i |
On Thu, Feb 08, 2001 at 11:46:54AM +1100, Ajay Gopinath wrote:
> Hi,
>
> We are in the process of implementing CVS on Linux and there is a
> requirement for creating two repositories on the server.
>
> Please can you let me know how to go about it.
Use different definitions for the -d option, and simply init them.
cvs -d /path/to/first/repository init
cvs -d /path/to/second/repository init
Then just have your users use the appropriate path when checking out the
code from the server:
cvs -d :ext:server:/path/to/first/respository co foo
cvs -d :ext:server:/path/to/second/respository co bar
>From that point on, you generally don't have to worry about the cvsroot
options because they're encoded in the files in the CVS subdirectories.
Generally referring, of course, to common commands like update, commit,
tag, and so on. Commands that don't work against an existing checked out
area (export, checkout, rlog, rtag) will need the appropriate -d option.
In this set up, it might be wise to not set a CVSROOT environment variable,
but instead, always explicitly use the -d so you don't accidently try to
act upon the wrong repository.
mrc
--
Mike Castle Life is like a clock: You can work constantly
address@hidden and be right all the time, or not work at all
www.netcom.com/~dalgoda/ and be right at least twice a day. -- mrc
We are all of us living in the shadow of Manhattan. -- Watchmen