Solved

Adding a directory to CVS

Posted on 2002-05-09
5
569 Views
Last Modified: 2010-04-21
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
Comment
Question by:alpine
  • 2
5 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6999584
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
 

Author Comment

by:alpine
ID: 6999720
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
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6999773
depending on your setup (CVSROOT, permissions, etc.), only the cvs-admin user can import the module in CVSROOT
0
 
LVL 2

Accepted Solution

by:
JYoungman earned 75 total points
ID: 7150112
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
forget admin password 8 23
AIX Server 10 74
Parsing a file using ksh 10 48
problem creating new luks volume on new VM disk 5 49
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now