SVN Repository

Subversion (SVN) is a version control system used to maintain current and historical versions of files such as source code, web pages, and documentation. We maintain a subversion repository server for faculty research and class use. To request a project repository, send your project name to yanyh @ cs.uh.edu. Currently this service is only available to faculty members. 

SVN client software:

To work with subversion and the repository, subversion client software are needed to checkout sources, commit changes, etc. For windows, use TortoiseSVN;  for Unix/Linux, subversion comes with most distribution, to install it, mainly just "yum install subversion" on Redhat/Fedora/CentOS distribution and "apt-get install subversion" on Ubuntu/Debian distribution.

Basic Instructions:

You should be given a URL of the repository of a project by the project owner, something like https://svn.cs.uh.edu/svn/<projectName>.  You will also be given a username/password to access it.

The basic process working with a repository is : Checkout the repository to create a local workspace; make changes (edit, add, remove, etc) to the files in the workspace; commit changes back to the repository. Most of the time, you only need to checkout one time and later on, you just need to update your workspace to the latest.

Checkout:

Create a folder for the project and go under the folder:

  • svn co <projectURL>

After that, your workspace has been created and the typical work cycle later on looks like this:

Update your working copy

  • svn update

Make changes

  • svn add
  • svn delete
  • svn copy
  • svn move

Examine your changes

  • svn status
  • svn diff

Possibly undo some changes

  • svn revert

Resolve Conflicts (Merge Others' Changes)

  • svn update
  • svn resolved

Commit your changes

  • svn commit

More Information:

Most of the time, check command manual by running "svn help". You may also want to read the known SVN manual from Version Control with Subversion.