Wordpress and Subversion

If you are like me and have switched to using Subversion to keep your wordpress installations up date, then you too may have been bitten by the recent update of the trunk to version 1.6.

For those not in the know, the easiest (IMHO) way to install and keep up-to-date your installation is to first install it with the following commands:

$ mkdir $WORDPRESS_DIR (e.g. mkdir wordpress)


$ svn co http://svn.automattic.com/wordpress/trunk/ .

Once you've followed the rest of the intallation procedures, you should have a fully functioning installation. From that point, the easy method of upgrading was via the following:


$ svn up

Unfortunately for those of us following the trunk -- though certainly positive for the user base as a whole -- the developers have started working on the new 1.6 version. As a result, the aforementioned 'svn up' upgraded our systems to this new version. After my last upgrade, I logged in and found that I was now running version "1.6-ALPHA-do-not-use" (woops!).

One solution would be to revert to an older, but stable, version, a la:


$ svn up --revision {2005-06-01} .

But that isn't what I wanted either, so... Another simple subversion command to the rescue: switch. To update to version -- the latest stable version as of this writing -- I simply used:


Should any minor changes be made to this version, then the simple 'svn up' will once again allow us to keep current. Should a newer 1.5 version be released, however, you will have to _switch_ to it:


And finally, when 1.6 is released, anyone wishing to once again follow the trunk releases can switch (sw in Subversion shortahand) back to the trunk:


$ svn sw http://svn.automattic.com/wordpress/trunk/

I certainly wish MovableType would offer MT via SVN. That would certainly ease the pain of upgrading multiple MT installations!

Note: For those wishing to use this procedure to install a fresh checkout (co) of wordpress 1.5.x, replace the reference to '/trunk' in this article with '/tags/', e.g.:



$ svn co \ http://svn.automattic.com/wordpress/tags/ .