Navigation

Recent site activity

Tutorials‎ > ‎

Using SVN

Installation

1. Set up an account at XP-Dev, the site we'll be using to host our SVN repositories. You can register at http://xp-dev.com/app/register
2. Send an email to ub.robotics@gmail.com with "SVN" in the topic which includes your XP-Dev user name.
3. Download TortoiseSVN, a subversion client that integrates with Windows Explorer. You can get it at http://tortoisesvn.net/downloads
4. Now you have both access to the repositories and a subversion client, it's time to get to work.
5. Inside the folder where you want to put your local version of the repository, right click and select "SVN Checkout"
6. Enter the address for the SVN repository you want to check out...
        If software:     http://svn.xp-dev.com/svn/ubrobotics_software/
        If electrical:    http://svn.xp-dev.com/svn/ubrobotics_electrical/
        If mechanical: http://svn.xp-dev.com/svn/ubrobotics_mechanical/
        (old mechanical repository at: http://svn.xp-dev.com/svn/ubrobotics_cad/)
7. Click OK, enter your user name and password, and now you should have a local version of the files.

Use
1. Before doing any work, right click on the folder and select "SVN Update". This will put the newest versions of all the files into your local copy.
2. Do your work.
3. After you're done, right click on the folder and select "SVN Commit". This will place your new versions of the files into the repository.


Re-Organizing the Repository
Do NOT move folders as you would in Windows when the folder is associated with the repository.  This will cause problems in the repository.  Instead, you must use the repo-browser to move a folder in the repository, then upload it to your local copy. 
1. Right click the folder you wish to change and select "Repo-Browser."
2. Here, you can move the folders as you would in windows explorer.  After moving a folder, you will see a prompt similar to the "SVN Commit" box, and you can enter an appropriate message.  It will have a new revision number.  Click OK after you have finished moving your folder. 
3. After moving the files in the repository, you need to update your local copy.  Select "SVN Update" for the folder you changed.