Monday, October 31, 2011

Upgrading to SVN 1.7


We upgraded our Tortoise SVN clients from version 1.6.x to 1.7.x. SVN 1.7 uses a Centralized Metadata Storage, which means that instead of storing a .svn-directory inside every other directory in your working copy it stores 1 centralized .svn-directory in the root of your working copy. This means far less extra directories and files scattered all over your hard drive. For our project we got the follwing numbers:

1.6.x:
  • Size on disc: 3,639 Mb
  • Files: 20,199
  • Folders: 7,542
1.7.x:
  • Size on disc: 3,559Mb
  • Files: 16,178
  • Folders: 1,556
Conclusion:
  • Size on disc: 97.8% of 1.6 version
  • Files: 80% of 1.6 version
  • Folders: 20% of 1.6 version
Diff:
  • 2.2% less space
  • 20% less files
  • 80% less folders

Tuesday, October 4, 2011

SVN relocate on Mac OS

This shows you how to relocate your svn directory to point at a new server ip address on MacOS. In the following example I have used the following parameters:

  • Computer user: Jerry
  • Directory where I have my local copy of the repository checked out: Jerry/MyProject
  • SVN user: svnuser
  • SVN psw: svnpsw
  • New IP of my server: 89.191.11.14

1. Open the Terminal
2. Navigate to the directory where you have your version checked out
3. Type "svn info".

  • If you get a message like "svn: '.' is not a working copy", then you are in a directory that is not under version control. I.e. you are in the wrong directory.


4. See where it says "URL ..." ? This is where your current directory is currently linked to. You want to use that URL in the next step. In my case it says : URL: svn://89.210.74.91/myproject/trunk
5. Write "svn switch --username svnuser --password svnpsw --relocate svn://89.210.74.91/myproject/trunk svn://89.191.11.14/myproject/trunk"