Welcome to flashlibrary.co.uk

Using Tortoise SVN and Externals on Windows

This isn’t a flash tutorial but it caused me some bother so I thought I would include it. SVN externals are great, they allow you to use the same code base across multiple projects.

When you check out a project you will probably use a path similar to the following.

svn+ssh://<username>@<servername>/var/svn/<project_name>

This will work fine until you start to check out an external directory. At this point it will give you an ‘Error connect closed’ message. This will likely be because the path the external is using is something like the following.

svn+ssh://<servername>/var/svn/<repository_name>

You’ll note the absence of the ‘user name’. The user name should not be included in the path because it needs to be user independent. However you need to indicate what user you are in order to authenticate yourself.

So How Do You Get Around it?

Well I’m glad you asked. You could use Cygwin. However if you are using Putty as your SSH agent you simply need to save a session in Putty thats name is the name of your server and thats host name includes your user name.

For example if I was using the following url to checkout a repository.

svn+ssh://warren@flashlibrary.co.uk/var/svn/project_one

I would save a session called flashlibrary.co.uk with the host name warren@flashlibrary.co.uk. Now instead of using the previous URL I would use the following.

svn+ssh://flashlibrary.co.uk/var/svn/project_one

That way the checkout path is independent of individual users. There is also an auto-login value in Putty.

In short if you are using Putty for SVN checkouts don’t include your own username in the checkout path.

Comment on Page

If anything is unclear or just plain wrong let us know and should ammend it pretty sharpish. If you visited the page with a particular question leave it and if it's flash related I'll try to answer it.