Subversion’s svn:externals

20th January 2007

I know everyone else is already doing it, but I've only just got around to working out how svn externals works and why it's quite cool.

I've got a Zend Framework application that I'm working on in subversion and it has a lib directory which contains a zf directory. The zf directory is a checkout of the latest trunk version of the framework. Up to to now, I've been doing this manually.

Today I sat down for all of 10 mins and sorted out subversion's svn:externals functionality to make it do the legwork. It's dead easy.

Command line:

cd lib
svn propedit svn:externals .

(Don't forget to ensure that the EDITOR environment variable is set!)

I then added

zf http://framework.zend.com/svn/framework/trunk

in the editor (a file called svn-prop.tmp, apparently) and saved and closed the editor.

All that's required now is an svn update to automatically pull in the Zend Framework code automatically for me.

By the way, you have to do a svn commit to actually commit the propedit change too.

New Theme

14th January 2007

Thought, I'd have a go at understanding WordPress themes! The image at the top is an actual road sign on my way to work, which has unfortunately been removed by the council.

If you see anything broken, let me know please as I've only actually tested this in Firefox! (I know it's broken in IE…)