[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 613
  • Last Modified:

Adding a directory to CVS

I am trying to add a new directory to my project in CVS.  I checked out all of my files and would like to add a directory in the root directory of my project.  

root_dir = place where I did a co of all my files

I want to make root_dir/new_dir and put stuff in there.  

The issue is when I try and do from the root_dir

cvs add new_dir

I get the error

cvs [add aborted]: there is no version here; do 'cvs checkout' first

But I don't have a CVS directory in my root_dir and I have already done a full checkout.  So how can I add this directory?  Thanks!!

 
0
alpine
Asked:
alpine
  • 2
1 Solution
 
ahoffmannCommented:
cvs' root directory only constist of projects (or modules), you cannot "add" directories there, only "import" projects,
use:

   cd root_dir && cvs import new_dir

(use options for your pupose)
0
 
alpineAuthor Commented:
Let me explain,

In my root_dir I don't have a CVS directory.  There are about 5 directories in root_dir, each having a CVS directory in the 5 directories.  I want to make a sixth directory with files that I would like to check in.  Now when I say "I need to add a directory", should I really be saying "I need to add a module?"

Also, there is an alias in the modules file in the CVSROOT that lists the alias for grabbing all 5 of the directories.  Now can I just add new_dir to the alias file?  Or would I use cvs import?  Every attempt at the syntax for my cvs import fails.  

Ideally I just want to be able to do a checkout using just the alias and pull down all six directories.  Thanks for your help.  Any ideas?
0
 
ahoffmannCommented:
depending on your setup (CVSROOT, permissions, etc.), only the cvs-admin user can import the module in CVSROOT
0
 
JYoungmanCommented:
Example of how to do it:

mkdir /home/you/scratch
cd /home/you/scratch
cvs co myproject
cd myproject
mkdir mynewdirectory
cvs add mynewdirectory
cd ..
cvs release -d myproject

Everyone else just does "cvs update -d" to refresh their working copy.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now