How do I fix this Subversion MKCOL error?

Viewed 92925

When I commit I get this error from Subversion:

bash-2.05b$ svn commit -m "testing subversion, still"
Adding         baz
svn: Commit failed (details follow):
svn: MKCOL of '/viper/!svn/wrk/6b9bcd38-b2fe-0310-95ff-9d1a44098866/sandboxes/ohammersmith/trunk/baz': 405 Method Not Allowed (http://svn.example.com)
3 Answers

This happens when you have added a directory that someone else has also added and already committed. The error message on a commit is really confusing, but if you do an svn up instead you'll see this message:

bash-2.05b$ svn up
svn: Failed to add directory 'baz': object of the same name already exists

To resolve the issue, remove your directory (or move it aside) and do an svn update to get the version on the server and re-do your changes.

As a general rule, be sure to do svn update since the error messages tend to be more helpful.

Sometimes this happens. Solution: When you create any new repository must add read.me file to create a default branch(trunk) so that it will find a proper path to push your stuff. If you create a repository and do not add read. me and if it is blank then upload a file like test.txt and take that uploaded file as latest update in your local folder and then try to push your code from that updated folder. This works for me.

Related