|
Simple-as-possible instructions for
interfacing with cvs on Grace.
From
Windows -
First, there are many cvs clients for windows. Here's
the one we use http://www.tortoisecvs.org/
It's free, it has a simple interface, it's fairly intuitive,
it ports to ALL windows platforms that you would want
to use. These are all good things. You will need to
go here and download this, or go find something like
it if you don't want to use this particular product.
The rest of the instructions will be geared toward tortoise
because that is what i have.
Second, Download and Install.
Now you are ready to start cvs'ing. Tortoise has a handy
right click interface. Here are a couple of things you
can do with it.
Creating a new module - Right click on the folder you
want to check in as a new module. Choose cvs -> Make
new module.. This will bring up a confusing looking
window. It isn't really that confusing though. Here
are the proper values for the fields:
Protocol - Internet(Unix pserver)
Server - grace.evergreen.edu
Repository Directory - /src/cvsroot
User name - *your linux username*
Module - The module name will already be the name of
the folder you clicked on.
Checking-out a current module - Right click in the folder
you want to check out the module to. Maybe the desktop?
Who knows? Anyway, right-click and choose 'cvs checkout'.
This will bring up a confusing looking window. It isn't
really that confusing though. Here are the proper values
for the fields:
Protocol - Internet(Unix pserver)
Server - grace.evergreen.edu
Repository Directory - /src/cvsroot
User name - *your linux username*
Module - *module name* ('ccvs' is one you can use to
test out stuff)
Modifying files - Open the files and modify them however
you like. Notepad, Word, PFE, whatever.
Checking in files - Local files that differ from files
in the repository will glow unearthly red. If you feel
like the change you made is worthy of being checked
in to the repository you simply right click on it andchoose
'cvs commit..' You will be given the opportunity to
comment on the changes you've made.
Here is a little more in-depth guide -
http://www.tortoisecvs.org/guide.html
From
Linux -
First download a cvs client for linux. http://www.cvshome
.org is a GREAT resource. They
have many different clients available, command line
and UI based. I personally prefer the command line cvs
on linux becuase it is super-powerful.
Before you do anything you must set an environment variable,
perhaps inside .bash_profile. You will have to set CVSROOT
to the root dir on the server. If you are going to do
this, get in touch with me and we'll work out what that
looks like.
Checking out a current module - This command will check
out the module:
cvs checkout *modName*
Checking in files - Looks like this. Go to the directory
where your modified files are. Usually you want to update
before you check in, just to make sure there will be
no conflicts. Type this - 'cvs update'. This will rattle
through all the files in the directory, checking them
against the files on the server. There are little flags
next to the filenames. This is what they mean:
U = Updated file. Local File has been newly created.
M = Modified file. Local file is different than server
file.
P = Patched file. Local file has been updated to match
server file.
C = Conflicted file. Local file and server file conflict.
Now, simply type - cvs commit *, where star represenst
one or more filenames you which to commit to the server.
It will give you a chance to comment on the changes
being made to the server.
For more info say - man cvs or cvs --help at the command
line.
|