Apr 2004

Subversion Tips

Here’s a few tips that I’ve discovered to ease working with Subversion.

Long URLs

Tired of those long URLs, like svn+ssh://foo@bar.com/long/directory/hierarchy/to/svn/repo/trunk? Use a shell alias, function or shell script which simply prints the URL. e.g.

echo "svn+ssh://foo@bar.com/long/directory/hierarchy/to/svn/repo/$@"

Save the shell script as, say, FooSVN. Now, instead of typing those long URLs on the commandline, you can just write svn co `FooSVN trunk` instead.