[Top][All Lists]

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

Re: Multiple Repositories

From: Derek R. Price
Subject: Re: Multiple Repositories
Date: Wed, 24 Jan 2001 11:07:19 -0500

"David A. Cobb" wrote:

> The UI should allow him to simply select the project name from among
> those he
> is working - and take care of the rest of the messy details.

Well, CVS already saves that information in your working directory, so you
usually only need to specify a CVSROOT for login, checkout, and logout.
Why bother?

If you really wanted, you could write a script (we'll call it cvsaliai for
now) that does the following:

#! /bin/sh
sed -n "/^$1 /{s/^$1 //;p;}" < $HOME/.cvsaliai

Then set up $HOME/.cvsaliai to something like the following:

projectname CVSROOT
projectname2 CVSROOT2
projectname3 CVSROOT3
. . .

Then when you run cvs commands on a new root use:

cvs -d`cvsaliai projectname` . . .

Hope that helps.


Derek Price                      CVS Solutions Architect ( )
mailto:address@hidden     OpenAvenue ( )
"Calm down. It's only ones and zeros."

reply via email to

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