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 07-05-2005, 12:22 PM   #1
yeahyeahyeah
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Rep: Reputation: 0
new CVS repositories


when importing into a new repository, how does one add the sub directories too?

for example...

mkdir /home/cvsrep
export CVSROOT=/home/cvsrep
cvs init
cvs import -m "initial import" . john start

now the repository is set up with all the files from the working directory.

cvs checkout .

now CVS and CVSROOT directories are found in the working directory. here's the question again, how do you get CVS and CVSROOT to appear in all subdirectories of the working directory root? if they did, a cvs commit would recursively go through the entire working directory, instead of individually adding directories to the repository and committing them individually

did i go wrong with the import statement?
 
Old 07-05-2005, 12:33 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Once you have done the initial import (like you did) you can get around the lack of recursive importing/adding by using common shell tricks: find . -exec cvs add {} \; will add all the files and directories in the current directory and all subdirectories.


Håkan
 
Old 07-05-2005, 04:26 PM   #3
yeahyeahyeah
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Original Poster
Rep: Reputation: 0
thanks, i'll use that.

but here's the thing, i've created a few repositories just a week ago, and everything was added automatically. unfortunately whatever i'd done has scrolled off my command history. i'm thinking i used something else besides a dot between "import" and "john"
 
Old 07-06-2005, 01:32 PM   #4
yeahyeahyeah
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Original Poster
Rep: Reputation: 0
after logging out and coming back after running that find command, CVS complains that it doesn't know about the added files
 
Old 07-06-2005, 05:28 PM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
Are you still using the same CVSROOT...? Sounds like you might have added them to another repository than the one you're using now?


Håkan
 
Old 07-08-2005, 11:50 AM   #6
yeahyeahyeah
LQ Newbie
 
Registered: Jul 2005
Posts: 5

Original Poster
Rep: Reputation: 0
i think i know what happened.

i created a repository and checkedout into the same working directory. for some reason it doesn't want to create the CVS directories in my working directory even though i own it.

my solution was to import using one working directory, scrap it, start a new directory and checkout. from then on cvs commit commands will go through the whole directory tree.
 
  


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
Running CVS Server on Fedora Core 4 with pserver as "cvs" user rupak Fedora 2 09-17-2005 02:06 PM
Running CVS Server with pserver as "cvs" user on Fedora Core 4 rupak Linux - Software 2 09-17-2005 12:10 PM
create a cvs repository with existing files to cvs powah Linux - Software 1 08-19-2005 09:19 AM
Obtaining sources by CVS - no cvs access cybrjackle *BSD 0 01-18-2005 08:28 AM
cvs wine. Unable to download. Error "cvs: command not found" gonus Debian 5 08-03-2004 07:13 PM

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

All times are GMT -5. The time now is 06:46 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