Showing posts with label Subversion. Show all posts
Showing posts with label Subversion. Show all posts

Sunday, July 12, 2009

Using svn:externals with TortoiseSVN and FSFS repository

 

If you use Subversion and TortoiseSVN client with repository hosted on filesystem, this can be interesting for you.

Many many years ago (4,5?) when I implemented my first repository, I used filesystem (and I still like it, simple and functional with hook scripts). Only drawback was syntax – which varied between command line subversion client and tortoise client.

In general, syntax is protocol://Location. Problem is if you are hosting your repository in UNC path. Then syntax looks really strange: file:///\server\share/repo.

Notice “\” and “/” – sometimes it works, sometimes you have to fight with it.

Recently I worked with project that was using svn:externals (you can link different repositories together, it’s like symlink on filesystem – even better, you can point to same repository, but different revision ;)). Suddenly it rejected to download externals. After a while I realized they changed syntax, you can still use old syntax, however usage of new is required in case of svn:externals (probably bug). New syntax is much easier to handle and I like it a lot.

Compare for yourself :) file:///\server\share/repo compared to file://server/share/repo.