March 11, 2008 1:15pm
I've been mucking around with subversion a bit lately. It's all pretty dreary stuff, but if I don't write it down I'll forget it.
First, there are three projects I'm working on at the moment that make use of other open source software, so to avoid whacking someone else's code into my repo, I've set up some svn:externals. A succinct explanation of setting up externals can be found here.
One of those open source projects I'm using is the Zend GData library, which I use to interact with YouTube from a Habari plugin. One pain is that svn:externals can only externalise directories, but the GData library has the class files in a directory all together and support code in per service directories. Therefore, I've got to include the whole thing just to use YouTube. Bummer.
Second, a couple of things crossed my radar related to hooks, so I thought I'd have a play. I used this article about checking PHP syntax on commit as a starting point, and hacked up a quick check on the commit log for habari-extras to make sure that the entry starts with "plugin" or "theme" so that committers remember to identify what they're committing to. It probably won't get used, but it was interesting. The thread discussing it is here