info-cvs
[Top][All Lists]
Advanced

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

Re: importing vendor branches


From: Greg A. Woods
Subject: Re: importing vendor branches
Date: Thu, 3 May 2001 11:18:52 -0400 (EDT)

[ On Thursday, May 3, 2001 at 16:58:14 (+0300), Nils Jakobson wrote: ]
> Subject: Re: importing vendor branches
>
> 
> I've also encountered this problem, as far as I've verified it looks like 
> this:
> when I do unconditional checkout, it always does get the latest revision no
> matter from which branch (like 1.1.1.1 right after import). When I update
> it updates the main trunk since it _stays_ there by default (?) but which
> is not true for branching (and tagging) - it will branch the line from which 
> it
> has the latest revision! So, before branching, perform conditional checkout
> where branch/tag is specified.

RTFM:  "Tracking third-party sources."

> I dont know how to get rid of the 1.1.1.1 (by patching a client?), it
> makes all the things go wrong from very beginning (if you dont know
> about this feature).

I published a patch long ago that would allow you to "import" to the
trunk, but it was only a half-assed effort and I never cleaned it up and
got it checked in to the main sources.

The reason I never cleaned it up was that I never really found it
necessary.  I wrote it in the first place so that I could experiment
with some different techniques of using CVS, but I never really used it
in a production environment.

In real life I only ever use "cvs import" for third-party code that I
want to track using the CVS vendor branch support.  For code that's
supposed to go on the trunk I always just use "cvs add".  It's a bit
more tedious, but even when adding massive numbers of files (and in many
sub-directories), a little shell script hand-craffted on the command
line is all it takes to automate the job.

(I really do not understand why some of the front-ends to the CVS
client, and indeed some of the third-party clients, have not made this a
feature long ago since it can be done entirely in or in front of the
client.  In PCL-CVS it's trivial to add hundreds or even thousands of
files at a time -- you just have to mess about getting the
sub-directories "added" first, which is part of why I wrote my proposal
of how to fix "cvs add", but I haven't done any major work on the guts
of CVS ever since then so I've not yet implemented that proposal.)

-- 
                                                        Greg A. Woods

+1 416 218-0098      VE3TCP      <address@hidden>     <address@hidden>
Planix, Inc. <address@hidden>;   Secrets of the Weird <address@hidden>



reply via email to

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