SVN Information and HOWTO
Eclipse plug-in
installation
Follow the installation guideline at the following URL:
http://subclipse.tigris.org/install.html
SVN General
Information
SVN allows a group of people to store their code in one
central location. This is very useful in
large projects, because often times different people work on different files.
To start with SVN, one person in the group needs to
initialize a repository, which is a folder on some remote server where code
will reside. The HOWTO below gives more
details on how to do this.
Once a SVN repository is setup, people in a group can start
adding and editing files in the repository.
SVN works in the following way:
Odd conflicts can occur, though. Think about the following case. User A checks out the repository at 2:00pm
and modifies the “nothing.txt” file but doesn’t commit. User B checks out the repository at 3:00pm
and modifies the “nothing.txt” file. At
4:00pm, user B commits “nothing.txt” to the repository. At 5:00pm, user A tries to commit
“nothing.txt” to the repository. User A
would overwrite the changes that user B made, so SVN doesn’t allow this to happen. The SVN Eclipse plug-in will require that
user A “merge” their local copy of “nothing.txt” with the remote copy of
“nothing.txt.” The plug-in provides a
slick synchronization window that makes this process easy.
Starting a repository
with the SVN Eclipse Plug-in
First off, make sure that only one of your group members
does this. All of the other members
should see the “Starting a project in Eclipse from an existing SVN project”
section.
https://flatline.cs.washington.edu/cse190l_sp07_svn/cse190l_sp07_X
Starting a project in
Eclipse from an existing SVN project
The user who created the repository won’t have to do the
below steps.
https://flatline.cs.washington.edu/cse190l_sp07_svn/
cse190l_sp07_X
Interfacing with SVN
The SVN Eclipse plug-in makes interfacing with SVN very
easy. As mentioned before, the changes
you make to files are done to a local copy, and the programmer must commit
those changes to the foreign copy in the repository. With that said, one can simply add, edit, and
remove files in their local copy and commit their changes to the
repository. To commit, right click on
the files or folders that you wish to commit and use the “Team -> Commit”
menu to do so. A prompt will show up
requesting a message to be sent to the repository. This message is useful so that one can later
recollect the changes made to an earlier version. The message can be left blank or filled in,
but it’s recommend to be filled in.
**Important** - The “Team -> Update” menu will update the
files and folders selected with the most recent copy. Be sure to always do this before making
changes to a local copy. This ensures
that the files you work on are fully up to date with everyone’s changes.
There are other capabilities that SVN offers such as version
control and reverting to older versions, but these features won’t be described
in this document. Be sure to ask your TA
any question you might have regarding SVN.
The TAs have slaved over SVN in the past and are totally capable of answering
most questions. If you’re not using
Eclipse, then an application called Tortoise SVN will allow you to interface
with the SVN repository. Google should
do an adequate job explaining how to download, install, and use Tortoise SVN.
SVN General
Guidelines