[openbeostranslationkit] Quick and Dirty CVS Guide

Ok, this is just a quick doc for those inexperienced with CVS

To use CVS the following applications is a must:
CVS - duh!
SSH (only for write access)
(I have left aquiring these applications as a task for the
reader :) - I think all of them is available on bebits.com)

To check out source code (read only access):
cvs -z3 -d :pserver:anonymous@xxxxxxxxxxxxxxxxxxxx:/cvsroot/open-beos co .

cvs = cvs executable
-z3 = use compression, level 3
-d  = use the following arg as CVSROOT
:pserver: = access repository using password server
anonymous@xxxxxxxxxxxxxxxxxxxx = anonymous user at cvs.open-beos.sf.net
:/cvsroot/open-beos = use /cvsroot/open-beos as root of repository
co = checkout
. = checkout current directory

To check out with read/write access we have to do almost the same - but we
need to access the repository using SSH so do this (assuming ssh is
installed):
set the environment variable 'CVS_RSH' to equal your ssh application -
typically:
windows:
set CVS_RSH=ssh

un*x:
export CVS_RSH=ssh

Now we can check the code out:
cvs -z3 -d :ext:SOURCEFORGE_DEV_NAME@xxxxxxxxxxxxxxxxxxxx:/cvsroot/open-beos
co .
(if you don't want to checkout the entire obso cvs - replace . with the path
to what you want to
check out. We for example only need the openbeos path)

now that we have checked out the entire repository, we 'cd' to our
translation (sources):
cd openbeos/sources/os/kits/translation

standing in our source directory, we can now add a file to the repository by
issuing:
cvs add <filename [filename]>
cvs commit

adding changes to the repository is a matter of:
cvs commit [filename]

Please - when using cvs, remember one thing: Commit small changes, don't fix
17 different things and then commit it - change one of those things at a
time, and then commit 17 times.
This way it is possible to back out individual changes, and a diff is much
more "viewable"

This was a quick guide - I might have left all kinds of stuff out - so just
ask away...
in general look at this guide for ALL cvs related:
http://www.cvshome.org/docs/manual/cvs.html


cheers
/Brian Matzon


Other related posts: