SVN server

From Computer Vision at Western

Jump to: navigation, search

To help collaborate on projects, the vision group web server hosts a number of Subversion (SVN) repositories. Below you'll find general steps to access a repository called testrepo. The actual repositories are private and are set up for specific users, and are thus not listed here.


Repository Access

The first step is of course to install the SVN client software on your local machine. For Windows, install the latest version of TortoiseSVN; if you have 64-bit Windows, be sure to install the 64-bit TortoiseSVN. Reboot your machine.


To download an initial copy of a hosted repository, you need to "check out" the entire repository.

  1. Create a new, empty folder in the place where you want to work on the files.
  2. Go 'inside' that folder, right-click in the blank area, and select SVN Checkout from the menu.
    SVN Checkout
    SVN Checkout
  3. Enter for the remote repository URL and click OK.
    Specify remote URL
    Specify remote URL
  4. The SVN client software should download the most recent version of the repository's files ('HEAD').
    Files were downloaded!
    Files were downloaded!

Note that you can also visit the repository URL above in your web browser to simply view the latest files as they are hosted on the server.

Committing Changes

Whenever you've edited your local copy of the files, you can push them back to the server for others to see. So long as nobody else has edited the same files in the interim, everything will go smoothly!

  1. To make sure nobody else has edited the same files as you, first go to the root folder of your local copy of files and right click on a blank area to select SVN Update. (You can do an 'update' at any time to get the server's most recent version of all files.)
    Check for conflicts
    Check for conflicts
  2. If there were conflicts (i.e. parallel edits) then follow the steps in "Resolving Conflicts" before committing your files.
  3. Right click again and select SVN Commit. Make sure all the files you expected to be changed are included (check-marked), especially new files that you created yourself. Type a message describing your changes and select OK.
    Commit changed files
    Commit changed files

If all goes well, the server repository is now synchronized with your local copy of the files, and others can use SVN Update to update their own copy with your changes.

Note.Some file types are best not added to the repository, and instead left to each individual user to generate locally. This mainly includes generated files (e.g. auto backup~ files, LaTeX .aux files, Visual Studio .ncb files,...) but also user-specific files (e.g. WinEdt project files, Visual Studio user configs,...).

Resolving Conflicts

This tutorial is not yet finished, sorry.

Adding New Repositories & Users

Each repository has its own list of users with checkout/commit permissions. If you'd like to host a new SVN repository or gain access to an existing one, please contact Andrew or look under \\suchmuch\users\adelong3\HowToCreateSVNRepositoryOnServer.txt for a tutorial.

Personal tools
hack to reserve spacing for research logo