Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CVS add directory/ error "there is no version here; do `cvs checkout' first"

Tags:

directory

add

cvs

Using Terminal (on Mac OSX 10.8.x) whenever I try to add a directory within my project

project_root jacob$ cvs add foo/
project_root jacob$ cvs add ./shared/foo/
project_root jacob$ cvs add /full/path/foo/

CVS complains:

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

Also, I've heard cvs does not like to create empty directories and it doesn't like to create a directory with only directories inside of it (no immediate children being files), so inside of foo/ is just an empty file named blank.txt.

Running cvs checkout project does not help.

This message is ridiculous; obviously there is no version—that's why it's called add!

P.S. Upgrading to svn/Git is, sadly, not an option at this time.

like image 508
Jakob Jingleheimer Avatar asked Jan 18 '13 18:01

Jakob Jingleheimer


People also ask

How do I add a folder to CVS?

Create the directory in a local workspace. cvs add <dirname> . That's it. Note that unlike adding files, which require a subsequent cvs commit , when adding a directory the add happens on the server as soon as you've done the cvs add so make sure you choose the right directory name.

Which command is used to update the files in CVS?

The commit command is used to place the changes you made to files in your local working directory back into the CVS repository.


1 Answers

OMG, cvs is a terrible joke: the current working directory must be the immediate parent of the directory being added:

project_root jacob$ cd shared/
project_root jacob$ cvs add foo/
Directory /…/foo added to the repository

source

like image 63
Jakob Jingleheimer Avatar answered Oct 01 '22 06:10

Jakob Jingleheimer