[Top][All Lists]

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

Re: how to check out a project which contains modules from different bra

From: Pierre Asselin
Subject: Re: how to check out a project which contains modules from different branches
Date: Thu, 11 Nov 2004 01:30:20 +0000 (UTC)
User-agent: tin/1.6.1-20030810 ("Mingulay") (UNIX) (NetBSD/1.5.4_ALPHA (i386))

Li Chou <address@hidden> wrote:

> Hi, I tried to figure out a single step of check out a project that
> contains modules from different branches of different project.

> For example, Project X has 3 modules, A and B which are from other
> projects.   I need to check out module A's of Project Y branch_2.5,
> and module B of Project Z's main trunk.  If they both were in the
> main trunk, I know I could add "X C &A &B" in modules file.  Now
> how do I check out them both at the same time?  is it possible?
> Thanks

Would a two-step process work for you ?  Recently I've been thinking
about a "wrapper" project.  Something that would work thus:

    $ cvs checkout X-wrapper
    U X-wrapper/README
    U X-wrapper/

and the README file would say:
    Run "sh" to get the rest of the tree.  Bye.

The script would contain these commands,
    cvs checkout C
    cvs checkout -r branch_2-5 A
    cvs checkout B

and by running it you would get the correct revision of
each subtree.  The script is rev-controlled, so it can track
changes in branch tags when subprojects get merged to
their trunks.

I guess this sort of thing (programmability) comes more
naturally in *nix.  Bah, even Windows lets you write
a checkout.bat, so it will work there too.

pa at panix dot com

reply via email to

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