SVN Articles

February 9, 2008 – 5:02pm Using svnX with svn+ssh on a non-standard port

svnX is a great mac GUI for svn repositories. A lot of our svn servers are accessed via non-standard ports for security, and a limitation of the svn+ssh syntax is that you can’t specify a non-standard port in the address name. To get around this in the command line, you can set a local environment variable “SVN_SSH” like so: More…

Posted in  OS X Web Development   |     |  No Comments »   |  delicious  Digg

January 21, 2008 – 9:50am svn, apache2, os x leopard 10.5

Mac OS 10.5 Leopard ships with Apache2 and SVN. However, if you want to keep a local svn repository and not use an external svn server (only really useful if you have projects which you will be the only developer), you have to set up the repository yourself. Here is a quick cheat-sheet to help you do just that. More…

Posted in  OS X Web Development   |     |  2 Comments »   |  delicious  Digg

June 13, 2007 – 2:15pm svn export and zip

Sometimes it’s necessary to make a copy of a project stored in an SVN repository. If you just copy the directory manually, you will also be copying those sneaky .svn files that exist in every directory in the project. Instead you should use the svn export command. This will make a new copy of all of the files in the respository than you can zip up and send off to whomever you please.

svn export file:///path/to/your/repository my_export

If you want to zip this baby up:

zip -r my_export.zip my_export

If you wanted to get really creative, and tag this export as a release, you could something like this:

svn copy file:///path/to/repos/trunk file:///path/to/repos/tags/1.0release -m "tagging version 1.0 release"
svn export file:///path/to/repos/tags/1.0release 1.0release
# for a zip:
zip -r 1.0release.zip 1.0release/
# for a tgz
tar -czvf 1.0release.tgz 1.0release.zip/*

References:

  • http://svnbook.red-bean.com/en/1.1/re10.html
Posted in  Web Development   |     |  No Comments »   |  delicious  Digg