Updating Zenphoto with SVN
Further to Updating Wordpress, it can be done with Zenphoto too.
SVN, Subversion, is a program for managing revisions (or versions) of software. In the way we will be using it, every time the zenphoto developers release a new version on their website, they tag that code in their svn repository. We can then check out that code. Then when they tag a new version, svn only downloads the changed parts of the files and merges them into the files in our local copy. This is great because we can also make our own modifications to the code (eg. Add themes, or more serious modifications) and the updates will be applied around our modifications. If we modified a file and then the same lines were later updated, svn tells us about the problem and asks us to fix it manually. So basically, you can continue to keep Zenphoto up to date without having to download the full version, unzip it, copy and paste files and folders around - it’s just one command!
First, check out the latest tagged version. This should be tagged as http://www.zenphoto.org/svn/tags/latest.version/ - you can see for yourself by visiting http://www.zenphoto.org/svn/tags/ eg.
$ svn co http://www.zenphoto.org/svn/tags/1.1.6/
If the latest version isn’t tagged, get onto the zenphoto developers via their forums. Every released version should be tagged!
Then, every time a new version is released, switch to the latest tag.
$ svn switch http://www.zenphoto.org/svn/tags/1.1.7/
Things that are as easy as this make me happy
To convert from an existing installation of zenphoto, rename your zenphoto directory to something else eg. photos.old, then make a new photos directory and check out the code into it. Then copy over your modifications, photos, etc.
Molokov scrawled,
Hooray, subversion
We use it at work for our configuration management - because it’s free! I’ve previously used ClearCase (not free) which is very powerful but also has drawbacks. Just like subversion is missing some useful features….
However, as with any tool, once you’ve learned how to use it, it can be quite powerful
Let me know if you have any “How do you…?” questions for SVN, because I possibly already know
Link | July 3rd, 2008 at 8:58 am
Corinna scrawled,
SVN is a really good program as it seems to me and if things are as easy as this one here, I’m happy too. That’s just great. So thanks for that hint.
Link | October 15th, 2008 at 12:14 am