[ On Monday, February 28, 2000 at 11:34:19 (-0500), William Lewis Brown wrote: ]
> Subject: Private repositories v.s. Open Source repositories
>
>       I need to have a section of an open source project's code in my own
> private repository.  The open source project uses CVS and so do I.  I
> want to know how people typically work with this type of an
> environment.  I have included two suggestions below.

Is the "open source" project's repository available by FTP or better yet
by CVSup?  If so then with CVSup you can easily use a locally kept copy
of it (you'll need two copies of it and a local CVSup server if it is
only available by FTP) to tag local releases.

>From there you can simply "cvs import" into a module in your local
working repository and treat that module as any other vendor-branched
module might be.  (I.e. keep your local changes on the trunk.)

I've done this successfully many times with the entire FreeBSD
distribution (including X11 src and "ports").

I do something similar on a regular basis with the NetBSD repository
too, but until recently it was not available directly but only as a
daily image of a "cvs update"ed workspace.  In this case I use "sup" to
keep a local copy of this "-current" workspace.  You can't actually tag
such a thing but given that the "cvs update" on the sup server is run
daily at approximately the same time I just use the sup date to
formulate the tag name for the "cvs import" that I do to my local
repository.

In either example the basic ideas are simple:

 1. create your own "releases" of the open source project, perhaps even
    by using daily snapshots of their development branch;

 2. import those releases to a vendor-branched local repository
    and do local development just as you would with any other
    vendor-branched module.

The only major caveat here is that you can't easily use normal CVS
branches in a vendor-branched module, at least not so long as you expect
the normal "features" of a vendor branched module to continue to work
properly.

-- 
                                                        Greg A. Woods

+1 416 218-0098      VE3TCP      <[EMAIL PROTECTED]>      <robohack!woods>
Planix, Inc. <[EMAIL PROTECTED]>; Secrets of the Weird <[EMAIL PROTECTED]>

Reply via email to