Using CVS For Source Control
by Mike Griffin
Note, this tutorial assumes the BASH shell. You may need to modify some commands for other shells
Configure Lore Account for CVS
- Add cvs to your execution path (Add it to your .bashrc)
export PATH=/p/cvs:$PATH
- Create cvs repository, grant access to all members of project group
mkdir-shared ~/cvs [username]* [username]
- Set CVSROOT equal to this repository (Add it to your .bashrc)
export CVSROOT=/homes/<mainusername>/cvs
- Initialize the cvs repository
cd ~/cvs
cvs init
- Import skeleton files into repository
cd <path to skeleton code>
cvs import -m "LabX Skeleton Code" labX labX start
Where labX is the current lab number
Begin working on code
- Checkout code when beginning to work
cd ~/cs422
cvs checkout labX
- Commit changes to the repository
cd ~/cs422/labX
cvs commit -m "changes made"
These instructions will work if you are working completely on the lore platform. If you would like to use
Windows as your development platform, then the WinCVS instructions that follow will help you.
Configuring WinCVS for connection to Lore for CVS checkout and commit
- Download the necessary programs
- Configure PuTTY for SSH authentication to Lore
http://anders.fix.no/cvs/wincvs-ssh Save the key in ~/.ssh/authorized_keys2
- Open WinCVS 1.3
- In admin/preferences
- Authentication: SSH
- PATH is /homes/<username>/cvs
Where username is the username of the person who is hosting the cvs repository
- HostName: Name of the PuTTY session you created (Not the servername)
- UserName: Your username
- CVSROOT: (should be auto filled for you based on other values)
- Click on Settings
Check SSH Client and point it to the plink.exe program you downloaded
Begin working on code
- Run pageant.exe
- Right-Click on pageant.exe icon in task bar (looks like a PC with a hat on it)
- Choose Add Key
- Point to the private key that you created with puttygen.exe
- Run WinCVS
Click Remote, then click the command that you wish to execute