On Wednesday, February 16, 2000 5:48 AM, [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] wrote:
> Are there any gotchas in adding symbolic links to a CVS repository
> file structure?  I'm trying to set up cvs for Java development, and
> I'd like a structure like the following:
> snip
> 
> Will cvs freak out if the same directory/,v files are commited or
> locked by users accessing them from different symbolic link
> directories?  (Different Root, same ,v)
>

With CVS 1.10, symbolic links function correctly in the repository.  There were 
problems on earlier versions.
 
> 
> 
> (EXPLANATION:
> 
> I'd like to use symbolic links because I'm more comfortable setting up
> the repository once, so that a single checkout gets all necessary
> files, rather than what I'm presently doing, which is
> 
>   cvs checkout projects/NiceServlet
>   cd NiceServlet
>   cvs checkout core/com
> 
> which is also fine, and I know it works, but you have to do it for
> every subdirectory (I'm using several different Java packages), so it
> turns into
> 
>   mkdir com
>   cd com
>   mkdir purpletech
>   cd purpletech
>   cvs checkout core/com/purpletech/utils
>   cvs checkout core/com/purpletech/servlets
>   cd ..
>   mkdir othercompany
>   cd othercompany
>   cvs checkout othercompany/com/othercompany
> 
> which is a big pain in the neck.)

Why not use nested/composite modules in the modules file?

Then you could have a modules file like:
_corecom    -d core/com core/com
_NiceServelet -d . projects/NiceServelet
_OtherJava    -d Other  projects/OtherJava

NiceServelet -d NiceServelet &_NiceServelet &_corecom
OtherJava -d OtherJava &_OtherJava &_corecom

Now checking out Nice Servelet will give you:
NiceServelet/
NiceServelet/core/com

This may not be quite what you want, but you should get the idea from this.

***************************************************************
Chris Cameron                    Open Telecommunications NZ Ltd
Software Development Team Leader
[EMAIL PROTECTED]                           P.O.Box 10-388
      +64 4 495 8403 (DDI)                          The Terrace
fax:  +64 4 495 8419                                 Wellington
cell: +64 21 650 680                                New Zealand
Life, don't talk to me about life ....(Marvin - HHGTTG)

Reply via email to