LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   new CVS repositories (https://www.linuxquestions.org/questions/linux-software-2/new-cvs-repositories-340269/)

yeahyeahyeah 07-05-2005 12:22 PM

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?

hw-tph 07-05-2005 12:33 PM

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

yeahyeahyeah 07-05-2005 04:26 PM

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"

yeahyeahyeah 07-06-2005 01:32 PM

after logging out and coming back after running that find command, CVS complains that it doesn't know about the added files

hw-tph 07-06-2005 05:28 PM

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

yeahyeahyeah 07-08-2005 11:50 AM

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.


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