How To - CVS repository
Kenji Hamano
Last modified : Jan 26, 2007
Back to How To
Back to Home
1. Setup directories
Create CVSROOT directory
> mkdir CVS
> mkdir CVS/CVSROOT
The location is arbitorary, and the directory name CVS can be changed
I'll explain the following supposing the CVSROOT directory is created under my home directory
/home1x/hep/khamano/CVS/CVSROOT
2. Create a directory in your work area and copy all the files you need, including subdirectories, into the directoy.
3. Import files to the repository
Use the following command from the avobe directory
> cvs -d /home1x/hep/khamano/CVS import -m "Initial import" directory vendortag releasetag
directory = name of the directory/package you want to put your files.
vendortag = vendor name of your choice
releasetag = initial tag name of your choice
For example
> cvs -d /home1x/hep/khamano/CVS import -m "Initial import" AnalysisCode BToDlnuAnalysisCode V00-00-01
This create the directory "AnalysisCode" under /home1x/hep/khamano/CVS and inport files in the directory.
4. Check out the package etc...
You can use all the CVS commands, but you need to specify the location of repository (CVSROOT) with the "-d" option.
For example, to ceck out the package
> cvs -d /home1x/hep/khamano/CVS co AnalysisCode
Or
> cvs -d /home1x/hep/khamano/CVS co AnalysisCode V00-00-01
To update
> cvs -d /home1x/hep/khamano/CVS update -A