ITK CVS/SVN Access I CVS. CVS is a well-established open-source package for doing version control and source collaboration on a file-tree basis. It can be used for many types of files, including documents and code. If the files are binary, however, some of the version-control features cannot be used, such as commit collision detection. So it is best for text-based files. The basic operations are: login, checkout a project (file tree), commit (put changes back), release, and logout. In between checking out and commit you make your changes to the files. Web page: www.cvshome.org Quick reference card: www.refcards.com The ITK CVS repository and server are running on a Linux machine: itklinux.itk.ilstu.edu There are three ways to access it, SUN, Windows, and from the Web: =============================================================================== SUN =============================================================================== 0. Create a $HOME/.cvspass file (first time only): touch $HOME/.cvspass 1. Set CVSROOT and PATH: setenv CVSROOT :pserver:@itklinux.itk.ilstu.edu:/home/version/cvsroot # for csh setenv PATH $PATH:/home/teporte/bin # cvs is in /home/teporte/bin 2. Login to CVS: cvs login You will be asked for the password that has been set up for your login. 3. cd to a directory where you want to put the project file tree. 4. Checkout a project (e.g. gamebase): cvs co gamebase 5. Do some editing (or not). 6. Commit changes (if you have them): cvs commit 7. Release: cvs release 8. Logout: cvs logout =============================================================================== Windows =============================================================================== 1. Get Windows GUI (WinCvs) from www.cvsgui.org 2. Start it up and go to Admin->Preferences. 3. Under the General tab, enter the CVSROOT as @itklinux.itk.ilstu.edu:/home/wwwrun/cvsroot, and the Authentication as "passwd file on server". 4. Under the WinCvs tab enter a folder where it can store your password. I created a cvs folder under My Documents for this as well as to check projects out in. 5. To login, go under Admin again, and enter the password that has been set up for you. 6. To checkout a project (also called module), go under the Create pull-down and do Checkout module. Give the project/module name, e.g. gamebase, and where to put the files (I specified my cvs folder). This will copy the code to that folder. 7. Work on the code, and to commit your changes (if you want to), go to the Modify pull-down, commit selection. 8. Don't forget to logout under the Admin pull-down. II SVN. SVN (subversion.tigris.org): "The goal of the Subversion project is to build a version control system that is a compelling replacement for CVS in the open source community". The SVN repository root is at svn://itklinux.itk.ilstu.edu/ I highly recommend TortoiseSVN (tortoisesvn.tigris.org) as a Windoes SVN client. III Web access. Go to my programs page, www.itk.ilstu.edu/faculty/portegys/programs.html, and click the CVS/SVN links.