[chora] CVSROOT and annotations

Jan Schneider jan@horde.org
Wed, 30 Jan 2002 18:25:15 +0100


Zitat von Jasper Veltman <j.j.veltman@taceo.nl>:

> Hi Anil,
> 
> Quoting Anil Madhavapeddy <anil@recoil.org>:
> > > My CVS repositories are in subdirectories of /data/cvs, 
> > > say /data/cvs/project1/. But the CVSROOT-dir for all repositories is
> by
> > default 
> > > in /data/cvs/CVSROOT/, and not in /data/cvs/project1/CVSROOT/ as
> Chora
> > seems to want
> > 
> > Your CVSROOT is /data/cvs, and not /data/cvs/project1 , in this case.
> 
> I think we have some kind of miscommunication of the concept CVSROOT. The
> 
> environment variable CVSROOT is /data/cvs, but there also is an directory
> 
> CVSROOT in /data/cvs. In "chora/config/cvsroots.php" I have to define a
> base 
> directory for a project, i.e. "/data/cvs/project1" which is under the
> variable 
> CVSROOT. Correct?
> Annotations seem to want access to the CVSROOT directory ("E Cannot 
> access /data/cvs/project1/CVSROOT"), it uses the basedir of that specific
> 
> project to find the directory CVSROOT. My guess Chora should use the 
> environment variable CVSROOT or some configuration variable.
> 
> If I change the basedir of a project to "/data/cvs" the annotations work
> since 
> Chora now tries to access "/data/cvs/CVSROOT". But using "/data/cvs" as
> the 
> start directory will show all directories of CVS-projects in "/data/cvs"
> 
> instead of "/data/cvs/project1".

Chora is build to browse repositories not cvs projects, so it behaves as 
expected. As you already found out, CVSROOT refers to the root of the cvs 
directory, not to the directory named CVSROOT under the cvs root.

If want to avoid some projects to be displayed in Chora, that's what 
the 'restrictions' entry is for.

Jan.

--
::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::