info-cvs
[Top][All Lists]
Advanced

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

Re: CVS : create a module from an already existing module


From: Pierre Asselin
Subject: Re: CVS : create a module from an already existing module
Date: Wed, 10 Aug 2005 23:47:23 +0000 (UTC)
User-agent: tin/1.6.2-20030910 ("Pabbay") (UNIX) (NetBSD/2.0 (i386))

Thomas Lavergne <address@hidden> 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


reply via email to

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