info-cvs
[Top][All Lists]
Advanced

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

Re: best way to create new project


From: Mark E. Hamilton
Subject: Re: best way to create new project
Date: Tue, 03 Oct 2006 12:00:11 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.7.12) Gecko/20050920

Vineet,

Sergei Organov wrote:
"Aggarwal, Vineet" <address@hidden> writes:

To create new project in a repository we first checkout the root of the
repository (cvs co -l . ) then create a subdirectory for the new
project, add files to it and commit. We don't use cvs import worrying
that the vendor branch functionality will create branches and do
undesired things.


Don't worry, use cvs import and ignore vendor branches. I mean
just forget the import creates them, -- they will do no harm.

Sergei is correct. However, remember that directories are not versioned by CVS; only files are versioned. So, the best way to create a new top-level directory in your repository is to import from an empty directory:

mkdir empty_dir
cd empty_dir
cvs -d <repos> import new_dir_name A B

This will create a new top-level directory in your repository named 'new_dir_name'. The vendor and release tags here (A and B) are irrelevant, since they don't get applied to the directory.

After you've created the directory you can check it out in your working directory and then start adding files.

--
----------------
Mark E. Hamilton
Orion International Technologies, Inc.
Sandia National Laboratory, NM.
505-844-7666





reply via email to

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