[Top][All Lists]

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

Re: How to define a shared submodule?

From: Spiro Trikaliotis
Subject: Re: How to define a shared submodule?
Date: Tue, 3 Jun 2008 09:13:39 +0200
User-agent: Mutt/1.5.17+20080114 (2008-01-14)


* On Tue, Jun 03, 2008 at 05:56:30AM +1000 Arthur Barrett wrote:
> With CVSNT I'd use modules2 (but if you are using CVSNT you'd be asking
> on the CVSNT newsgroup wouldn't you?).

With CVS, you can also use modules (cf. CVSROOT/modules); for example, if
your "main" projects are called proja and projb, and your "subproject"
which is shared is called "shared".

Now, you can define two modules (in CVSROOT/modules)

proja proja &shared
projb projb &shared

Now, when you check out proj1 and/or proj2, the subproj will be checked
out as a subdirectory (i.e., proj1/subproj).

Thus, it will behave exactly the same as:

> With CVSNT (and I'd assume this *should* work on CVS) you can also
> simply checkout the second project below the first, ie:
> cvs -d :pserver:host:/repo co projecta
> cd projecta
> cvs -d :pserver:host:/repo co shared
> An 'update' issued in 'projecta' will update both 'projecta' and
> 'shared'.

The only difference is that you do not need to use two "checkout"
commands to get your workspace.


Spiro R. Trikaliotis                               

reply via email to

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