SVN: MKCOL 405 Method Not Allowed Error


I had just pulled down Mac4Lin files from the SVN repo and was to reupload them yesterday. This time I decided to upload each folder separately, one by one. The first folder (directory for UNIX people) was properly uploaded. When I did and 'svn add ' the folder got successfully added. Next when I did an 'svn commit -m "message"', I got this dreaded error:

svn: Commit failed (details follow):
svn: MKCOL of '': 405 Method Not Allowed ()

I kept scratching my head for a long time as to why this kept happening. I was finally able to fix it. After an 'svn commit', all I had to do was an 'svn checkout '. The local copy would then be sync'd with the remote copy, brining it up to the same revision. I could then proceed to adding new folders/files and then svn commit'ting'.

It turns out that the folder previously added/uploaded needs to haf proper revision before the new folder can be added. Otherwise, svn will treat it as trying to upload the files/folder already existing in the repo. Another solution to this would be to wipe the SVN repo clean and start afresh.

I'm sure many of you would've faced this error. What were your fixes?

Comments

Unknown said…
I did a svn update instead of a checkout. Thanks for the post.

Popular posts from this blog

My iNav Remix - iPhone and iPod Touch UI

Mac4Lin ver.1.0 Released!

Mac4Lin ver.1.0 Release Candidate