Thomas Lavergne <[EMAIL PROTECTED]> wrote:
> I have a sub-directory (called sub1) in my current development module
> (dev1). I would like now to create a new module (dev2) but which uses
> the source codes in sub1. Thus, I would like to use an "ampersand"
> module as for sub1 and have it checkout'd/commited by both dev1 and dev2
> as needed.
> Could you please explain me what should I do to:
> 1) create a new module (called sub1) in my repository, this module
> should contain the source files which are now in the directory sub1
> (keeping their history)
Just add an entry in your CVSROOT/modules file to identify dev1/sub1/
as a module in its own right.
dev1 path/to/dev1
sub1 path/to/dev1/sub1
Now you can do a "cvs checkout sub1" and get just the subtree
(but that probably isn't useful by itself).
> 2) "remove" the directory sub1 from the dev1 module
No need.
> 3) "add" the dependency between dev1 and the new sub1 and also between
> dev2 and the new sub1
Just add a definition of dev2, with sub1 as an amperstand module.
dev1 path/to/dev1
sub1 path/to/dev1/sub1
dev2 path/to/dev2 &sub1
--
pa at panix dot com
_______________________________________________
Info-cvs mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/info-cvs