How to fix certain SVN commit errors

If you’re getting an error message that looks like:

subversion/libsvn_client/commit.c:832: (apr_err=155005)
svn: Commit failed (details follow):

Then try backing up your project directory and re-check it out from Subversion using “svn co “.

If you then get something that looks like:

subversion/libsvn_wc/log.c:337: (apr_err=155009)
svn: In directory ‘YourProject/trunk/someDirectory’
subversion/libsvn_subr/io.c:565: (apr_err=2)
svn: Can’t copy ‘YourProject/trunk/someDirectory/.svn/tmp/text-base/foo.html.svn-base’ to ‘YourProject/trunk/someDirectory/foo.html.tmp’: No such file or directory

Then the problem may be that you have checked in both YourProject/trunk/someDirectory/foo.html and YourProject/trunk/someDirectory/Foo.html. Try to avoid this. This definitely causes problems on OS X and may on other systems.

To verify, execute “svn list /someDirectory/” and look for two versions of the file, but with different cases.

To fix, execute “svn remove /someDirectory/foo.html” or Foo.html, depending on which one you want to get rid of.