svn

MAMP and Drupal Version Control API

I recently installed the Version Control API Drupal module to give it a test run. Unfortunately it did not work right out of the box. I was getting the following error when trying to refresh my svn logs through my sandbox Drupal site running in MAMP:


dyld: lazy symbol binding failed: Symbol not found: _iconv_open
Referenced from: /usr/lib/libaprutil-1.0.dylib
Expected in: /Applications/MAMP/Library/lib/libiconv.2.dylib

dyld: Symbol not found: _iconv_open
Referenced from: /usr/lib/libaprutil-1.0.dylib
Expected in: /Applications/MAMP/Library/lib/libiconv.2.dylib

After some googling for a while, it became apparent that the svn binaries that are installed by XCode Tools just needed to be updated.

svn add - excluding the files directory

I use bash script that I found on GotDrupal for adding and removing files from svn using a regular expression. I normally use the command for simple tasks, like the ones shown in the video on GotDrupal, but today I used a regular expression that took me a few minutes to get working.

I wanted to add everything in my local development environment to the svn repository except for the files directory. The first thing I did was add my Drupal install non recursively, then with my handy svngrep command added the rest of the directories, except for the files directory.


svn add -N drupal
cd drupal
svngrep '^\?.*[^( files$)].*$' add