I fire up Emacs from finder using QuickSilver. It has the system's PATH which has /usr/local/bin/ after /usr/bin/ and this means I get the system's 'svn' instead of ones I've installed myself.
I tried setting PATH in ~/.bash_profile and ~/.login but these weren't seen in my Emacs shells. I had to edit ~/.MacOSX/environment.plist:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>RSYNC_RSH</key> <string>ssh</string> <key>PATH</key> <string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:~/bin:/usr/X11R6/bin:/opt/local/bin</string> </dict> </plist>
Then had to log out and in again.