Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I fix this Subversion MKCOL error?

Tags:

svn

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) 
like image 710
Otto Avatar asked Sep 19 '08 03:09

Otto


2 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.

like image 109
Otto Avatar answered Sep 18 '22 12:09

Otto


This happens when you have added a directory that someone else has also added and already committed.

This is something to indicate conflict but at Directories level (just to understand).

To resolve this, just do svn update before committing your changes

like image 27
Harshal Doshi Jain Avatar answered Sep 17 '22 12:09

Harshal Doshi Jain