Reputation: 63
I have setup a svn repository on my server. I, instead of delete the directory under the repository, used rm -rf to delete the directory. Now that I cannot create any directory under my server, even when I deleted subversion and reinstall it. This is what I got.
root@skynet2012:/webserver/repos# svn mkdir file:///webserver/repos/blahblah
Log message unchanged or not specified
(a)bort, (c)ontinue, (e)dit:
c
svn: File already exists: filesystem '/webserver/repos/db', transaction '2-2', path '/blahblah'
How can I fix it? Thank you.
Upvotes: 2
Views: 1718
Reputation: 19632
The directory still exists in your repository. That is what the error says.
So all you need is a way to get it back in your working copy.
The easiest ways to do this are (Subversion 1.7 or later)
svn revert -R DIR
Which will revert all local changes on DIR.
Or (All Subversion versions)
svn update DIR
Which will first bring back everything it can from the working copy and then update your working copy to the latest version.
Before Subversion 1.7 the data was stored per directory in a .svn
subdirectory so a plain revert couldn't fix everything.
Upvotes: 1