This has ticked me off for a bit, and I finally decided to find out why. Tab completion in zsh was returning the following every time I tried to use it, after upgrading to subversion 1.5:
_arguments:comparguments:303: invalid argument: ARG
Looks like the reason is that the subversion developers changed “arg” to “ARG”. So when I googled I found this helpful post:
ZSH Tab Completion Fix for Subversion 1.5 which basically points to this new _subversion functions file to be plopped into the zsh functions directory (/usr/share/zsh/4.3.4/functions; change the version to suit of course — the directory may also be slightly different on Linux vs OS X).
Now tab completion works properly and life is good. =)


4 Comments
You probably want to put in your own directory and adjust fpath instead :
http://zsh.dotsrc.org/Doc/Release/zsh_8.html
Chmou.
hi, i move my blog to it’s own domain. please update your link to http://mkoga.com/zsh-tab-completion-fix-for-subversion-1-5. thanks
Thanks, Micah. I’ve fixed the link now.
As Micah’s server is down, I found instructions on this site:
http://malsserver.blogspot.com/2009/02/zsh-tab-completion-fix-for-subversion.html