Assignments
Links
Schedule
Syllabus
|
Source Control
You must use source code control to regulate progress with your group's source
code.
We will learn how to use cvs in the first class.
Here is the CVS Manual.
Here is a brief tutorial:
login:
Let cvs know your cvs password. Your password for cvs is the same as
your mathserver password.
cvs -d :pserver:jbredin@mathserver:/usr/local/src/cvsroot login
Replace jbredin with your user name.
The /usr/local/src/cvsroot denotes the directory where
the repository resides.
creating a project:
cvs -d :pserver:jbredin@mathserver:/usr/local/src/cvsroot import test jbredin start
The import command creates a new project in the test directory and adds
all files in your current working directory into the new project, called
test.
The second use of jbredin is the vendor tag. Use whatever you wish for this
class.
The last argument, start, is the release tag. Again, use whatever you wish.
checking out the project:
cvs -d :pserver:jbredin@mathserver:/usr/local/src/cvsroot checkout test
Retrieves the latest version of test.
Use the checkout command before update! checkout creates local cvs utility
files inside the CVS directory.
getting the newest source:
cvs -d :pserver:jbredin@mathserver:/usr/local/src/cvsroot update
Gets the latest version of all the source code in your current working
directory, assuming that you have already checked out the project.
filing your changes:
cvs -d :pserver:jbredin@mathserver:/usr/local/src/cvsroot commit
Sends all the changes of your checked out files in the current directory to
cvs.
You may also specify a filename here.
You should update and check your source before you commit.
other commands:
add, remove, tag
See the cvs man page and manual
for details.
shortcut:
You can set the environment variable CVSROOT in lieu of specfying the
cvs location on the command line.
|