Dot-Underscore Hell

A frustrating situation courtesy of OSX and mounted drives (over SMB in this case):

linux-host$ svn status
?      site/actions/._contact.php
M      site/actions/contact.php
?      site/conf/._controller-config.ini
?      site/conf/._nav-config.php
M      site/conf/nav-config.php
?      site/templates/._contact.php
M      site/templates/contact.php

Luckily, there's a command for that (OSX Leopard):

mac$ dot_clean .
linux-host$ svn status
M      site/actions/contact.php
M      site/conf/nav-config.php
M      site/templates/contact.php

See man dot_clean for more information. Credit to MacWorld for this tip.

Update: Since posting this, Brian pointed out that this is most likely a setting inside of TextMate. To disable, just run this command from a terminal:

defaults write com.macromates.textmate OakDocumentDisableFSMetaData 1

Do not run this using sudo if you want it to work (I found out the hard way).