[Top][All Lists]

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

Re: cvs import help

From: Michael Haggerty
Subject: Re: cvs import help
Date: Wed, 15 Oct 2008 09:37:51 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20080925 Thunderbird/ Mnenhy/

address@hidden wrote:
> I am trying to add new project to CVS, and having problem with files
> revision index.
> My $CVSROOT is set correctly to repository.
> Here is what I am doing:
> trying to set project for bin dir, bin dir includes only one file
>> cvs import -m "adding bin" bin projxxx MySoftwareCompany start
> [...]

Some CVS documentation unhelpfully suggests using "cvs import" to get
sources into CVS, but I think that is bad advice.  "cvs import" is in
fact a kludgy feature that is meant for tracking sources from a vendor
that you want to integrate into your project (and maybe modify locally).
 The funny 1.1.1 branch is called a "vendor branch", and there is a
complicated implicit relationship between the vendor branch and your
main line of development.  Using import will make it look like the
imported source is on the main line of development and also the vendor
branch, so you can use it just like you tried.  However...

There is no reason to use "cvs import" to get a file that you created
yourself into CVS.  Simply check a working copy out of CVS, then in the
working copy use "cvs add" to add the directory then "cvs add" again to
add the file.  This will add the file as revision 1.1 without creating a
vendor branch.


reply via email to

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