LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Creating CVS repository: cvs [import aborted]: attempt to import the repository (https://www.linuxquestions.org/questions/linux-software-2/creating-cvs-repository-cvs-%5Bimport-aborted%5D-attempt-to-import-the-repository-239731/)

enemorales 10-07-2004 04:29 AM

Creating CVS repository: cvs [import aborted]: attempt to import the repository
 
Hi there,

I'm trying to set up a CVS repository in my linux account.

I do:

% export CVSROOT=~/mycvs
% cvs init

It looks like up to this point anything worked fine. I get a CVSROOT directory plenty of administration files. Then I try to create an empty project:

% mkdir foo
% cd foo
% cvs import -m. foo foo initial

But I get this message:

cvs [import aborted]: attempt to import the repository

As I've read, this should happen if the foo directory was inside ~/mycvs/CVSROOT ... which is not the case. Does anyone have some idea about this?

Thank you very much...

bathory 10-07-2004 04:41 AM

Quote:

% mkdir foo
% cd foo
% cvs import -m. foo foo initial
You have to be to the parent directory of the repository, so "cd foo" is not needed.

enemorales 10-07-2004 09:27 AM

Quote:

Originally posted by bathory
You have to be to the parent directory of the repository, so "cd foo" is not needed.
I tried as you write, but I get the same message :-(.

wsanders 10-15-2004 04:30 PM

CVSROOT
 
Without explaining it any further, CVSROOT needs to be a clean dir one level below your home dir:

- Let's say my home directory is /home/wsanders
- mkdir /home/wsanders/CVSROOT
- export CVSROOT=/home/wsanders/CVSROOT
- cvs init
- It will make /home/wsanders/CVSROOT/CVSROOT
- Cd to /home/wsanders/MyProj
- cvs import -m Imported Myproj wsanders foo
- This will import the project, project CVS files are in /home/wsanders/CVSROOT/MyProj
- cd /home/wsanders ; rm -r MyProj
- cvs co Myproj
etc etc etc

-w


All times are GMT -5. The time now is 12:53 PM.