CVS on Windows instructions
We'll
be using a fictional group:
cs152-alice
cs152-bob
cs152-chuck
cs152-doris
1. On ONE account, the one that will
be the master repository: (We'll use cs152-alice here.)
a.
Download
CVS for windows (if you know of a better version then let me know): http://ccvs.cvshome.org/servlets/ProjectDownloadList?action=download&dlID=2392.
b.
Unpack
the executable and place it somewhere safe on your u: so that it will be there
even after you log off. It'll probably
have some name like cvs-1.11.5.exe, you may want to rename this to cvs.exe
because it is easier to type. All of
the cvs commands that I will refer to later in this document assume that the
executable has been renamed to cvs.exe.
c.
Make
a batch file and put it in your U: drive containing something like the
following: (A batch file is just a text
file with a .bat extension that will run a series of commands).
set PATH=<path to my cvs
executable>;%Path%
set CVSROOT=U:\MY_SPIFFY_REPOSITORY
To use cvs properly you'll need to open a command prompt and from
that prompt run the batch file. It will
setup the path properly along with the CVSROOT variable. Then you can run cvs commands safely.
d.
Create
a repository on your account (this should be a directory dedicated entirely to
CVS and have nothing in it beforehand).
mkdir
U:\MY_SPIFFY_REPOSITORYcd U:\MY_SPIFFY_REPOSITORY
cvs init
e.
Now
go find your lab directory:
cd "U:\foo\bar\lab foo
bar"
cvs import <name of lab>
<vendor tag> <vendor branch>
<name of lab> is the name that you will use to check out your
lab. It can be something mundane like
lab3, or something exotic like single_cycle_adventure. <vendor tag> and
<vendor branch> are tags and branch ids that are probably meaningless to
you unless you know about the tagging and branch options in CVS (RTFM if you
need to know more). All you really need
to know about them is that they are required and that they must be
alphanumeric, you'll probably never use them again.
f.
If
everything works properly notepad should popup giving you a CVS logfile. Here you can put random information about
the information that you just imported.
Save the file and close it. You
should see some messages about files being imported and hopefully it will tell
you that there are no conflicts.
g.
Now
go to another directory (to check that your import really worked):
cd u:\baz\boopcvs checkout <name
of lab>
and CVS should check out the lab
for you.
h.
Finally
to give access to your group members:
i.
Go to
your directory by typing it into the navbar of an explorer window. (In this
example it would be \\fileservice\cs152\fa03\cs152-alice)
ii.
Open
the security tab for that folder.
iii.
Add
cs152-bob, cs152-chuck, and cs152-doris to the access control list.
iv.
Give
them full control of your directory and all subfolders and files.
v.
BE
VERY CAREFUL WHILE DOING THIS!!! If you
make a mistake and remove yourself from the list then you will lock yourself
out of your own directory! If you
didn't give any of your group members full control then they can not give you
access again and you will have to talk to Pathma (pathma@cs).I have personally
encountered bugs when updating my access control list where I did not
explicitly remove myself from the list, I only added one of the other TAs to my
ACL and it wiped all the other entries out, leaving me with no access at all
(although my group members could still read it). If you are going to do this then I'd advise you to give full
control to at least one other person so that they can save you if something
goes wrong.
2. On all the OTHER
accounts:(cs152-bob, cs152-chuck, cs152-doris)
a.
Download
CVS for windows (if you know of a better version then let me
know):http://ccvs.cvshome.org/servlets/ProjectDownloadList?action=download&dlID=2392.
Unpack the executable and place it somewhere safe on your u: (ie U:\bin).
b.
Make
a batch file and put it in your U:\bin directory containing something like the
following:
set PATH=U:\bin;%Path%
net use v: \\fileservice\cs152\fa03\cs152-alice
set CVSROOT=V:\MY_SPIFFY_REPOSITORY
You'll need to run this every time
you open a command prompt to do cvs work.
c.
Go to
the directory that you want to check out to (u:\foo\bar or c:\temp\foo\bar) and
do the following:
cvs checkout <name of lab>
And you should get updated
properly.