Monday, July 23, 2007

Setting up Repository

CVS

Steps to follow to setup CVS:

1. mkdir /home/cvsfolder
2. export CVSROOT=/home/cvsfolder
3. cvs init
Initialize your cvs folder

4. chown -R ownername:groupname /home/cvsfolder
5. chmod -R g+rwxs /home/cvsfolder
This is a important step. Here we are making the directory sticky.
When a user commits a file to cvs, the username might change but the
groupname still remains the same.

If you don't follow this step, you might end up in a situation where a developer
checks in the file and other developer can't commit the same file.

Import Project to CVS

1. mkdir /project/TestProject
2. touch /project/TestProject/README.txt
3. export CVSROOT=/home/cvsfolder
4. cd /project/TestProject
5. cvs import -m "Some initial comment on the project" TestProject youcompany release_tag

Your TestProject is in CVS now.

Checking out the from CVS

1. export CVSROOT=/home/cvsfolder
2. cvs checkout TestProject

Checking out from Remote Server CVS

1. export CVS_RSH=ssh
2. cvs -d:ext:yourname@server.com:/home/cvsfolder checkout TestProject

Comments: Post a Comment

<< Home

This page is powered by Blogger. Isn't yours?