LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-07-2004, 04:29 AM   #1
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Rep: Reputation: 31
Question 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...
 
Old 10-07-2004, 04:41 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,157
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
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.
 
Old 10-07-2004, 09:27 AM   #3
enemorales
Member
 
Registered: Jul 2004
Location: Santiago, Chile
Distribution: Ubuntu
Posts: 410

Original Poster
Rep: Reputation: 31
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 :-(.
 
Old 10-15-2004, 04:30 PM   #4
wsanders
Member
 
Registered: Jul 2003
Posts: 31

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
import fail to put code to the repository powah Linux - Software 0 10-25-2005 02:09 PM
create a cvs repository with existing files to cvs powah Linux - Software 1 08-19-2005 09:19 AM
CVS Repository Management Matir Linux - Software 0 07-06-2005 02:15 PM
sourceforge CVS repository Genjix Programming 1 01-09-2005 05:57 PM
What is CVS repository? subaruwrx Linux - Newbie 7 07-13-2004 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration