info-cvs
[Top][All Lists]
Advanced

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

Re: cvs with subdirectories & Tortoise cvs


From: Todd Denniston
Subject: Re: cvs with subdirectories & Tortoise cvs
Date: Tue, 10 Jul 2007 12:51:14 -0500
User-agent: Thunderbird 1.5.0.12 (X11/20070509)

Daniel Wetzler wrote:
Dera CVS experts,

we are using a cvs repository via pserver on a Unix machine here.
Since we have several workgroups with different projects here we
created subdirectories into
the cvs-repository.

The problem is that one has to give a certain cvs-repository path to
log in but has to use
a subdir of that path to use cvs.


to have the $CVSROOT on a per project basis, then you need multiple repositories, which do not have to be on different machines, but do have to have different directories to work in.
http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_2.html#SEC22
i.e.,
$CVSROOT=:conmeth:/ourrepos/projA
$CVSROOT=:conmeth:/ourrepos/projB
$CVSROOT=:conmeth:/ourrepos/ProjC
with appropriate mods to [x]inetd
http://ximbiot.com/cvs/wiki/index.php?title=CVS_FAQ#How_do_I_get_CVS_pserver_working_with_xinetd.3F
http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_21.html#SEC189
http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_2.html#SEC26

How could I create a new module which  is in a subdir of my cvs
repository ?


being one level [subdirectory] off of the $CVSROOT automatically makes it a 'module'.
If you have projects which are in the repo like:
/mycvsrep/subdir/projAdir/
/mycvsrep/subdir/projBdir/projCdir
/mycvsrep/subdir/projBdir/projDdir

then it might be easier for the users if the administrator used the modules config file.
http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_18.html#SEC159

with the modules file looking something like:
ProjA   subdir/projAdir
ProjB   subdir/projBdir
ProjC   subdir/projBdir/projCdir
ProjD   subdir/projBdir/projDdir

and checkouts looking like:
cvs -d pserver:address@hidden:2401/mycvsrep co ProjD
cvs -d pserver:address@hidden:2401/mycvsrep co ProjB


You should probably read
http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_2.html#SEC20
http://ximbiot.com/cvs/manual/cvs-1.11.22/cvs_2.html#SEC21
before editing the modules file for the first time.

If I use something like
:pserver:address@hidden:2401/mycvsrep as CVSROOT then I
only reach the main cvs directory. If I use something like
:pserver:address@hidden:2401/mycvsrep/subdir as CVSROOT
I can't log into cvs.


$CVSROOT has to point to the root of the repository [directory containing CVSROOT].

How can I solve that dilemma ?

best ragards,

Daniel



--
Todd Denniston
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter




reply via email to

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