LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   CVS configuration (https://www.linuxquestions.org/questions/linux-software-2/cvs-configuration-262029/)

karan101 12-03-2004 01:28 AM

CVS configuration
 
Hello everyone

well I'm very new to CVS, I've studied what it does and how it does work but I'm having a hard time configuring it on my system....I'm running a fedora core 3 and I've already done these steps:
added this line to my .bashrc
CVSROOT=:pserver:anonymous@rhlinux.redhat.com:usr/local/CVS
I dunno what this does but I found this on a webpage about fedora and configuring the cvs root on it , i also created a file .cvsrc in my home directory and put these in it
cvs -z3
diff -uN
rdiff -uN
update -dP

now all i wanna be able to do for now is jut to be able to check in some files and check out...
i've already have my projects so can anyone explain what i else i should be doin...
and also how can i add my already made programs to use cvs...? say each program has different .h and .cpp files...
thank you very much
karan

tlowk 12-31-2004 01:41 PM

If this is for yourself to play a bit around start a bit easier

$ mkdir $HOME/cvsRep # just make a directory as a repository
$ export CVSROOT=$HOME/cvsRep
$ cvs init # this is needed only once (but you don't break anything with it)


support you have a bunch of files in a directory ~/project
$cd project
$cvs import myProject someTage inital

now the project is in CVS, make a sandbox directory that you will use to edit


$mkdir ~/sandbox
$cd ~/sandbox
and check out a sandbox of your project to edit
$cvs checkout myProject
$cd myProject
your file will appear here together with directories named CVS (don't touch those,
but they contain the CVSROOT, each time you use a CVS command it will use that
CVSROOT specified before)

edit some files now
$ cvs commit -m 'some changes to test this'

now your changes are in CVS


I think if you can get this working you have some idea of it


All times are GMT -5. The time now is 01:34 AM.