I deleted manually a directory I just added, offline, in my repository. I can\'t restore the directory.
Any attempt to do an update or a commit will fail with:
The simplest that helped me:
rm -rf _dir_in_question_
svn up
If you have changes in the problematic dir, then this is not a good solution for you.
Didn't understand much from your posts. My solution is
I came across this problem when replacing a third party API library with a newer version, and none of the solutions here really worked for me because I wanted to replace the SVN version with the local version. My solution was as follows:
1) Move the offending folder to my home dir, delete it from SVN and commit:
mv foldercausingproblem ~/
svn --force delete foldercausingproblem
svn commit --message "Temporary removing folder with old API"
2) Put the folder back, add it to SVN and commit again:
mv ~/foldercausingproblem ./
svn --force add .
svn commit --message "Finally all working!"
Slightly irritating to have to commit twice, but it seems to have worked fine.
A common task I experienced was having to take one repo directory in staging and copy it to another repo - both under SVN and both called the same name. The way that worked for me was the following:
svn --force delete PROBLEMATIC-DIR
svn export "https://OLD REPO-A/ new-repo-A"
svn add new-repo-A
svn commit new-repo-A
I added a directory to svn, then I accidentally deleted the .svn folder within.
I used
svn delete --keep-local folderName
to fix my problem.
What I did to fix this was to delete the local copy of the folder under question and then do an svn update
of the parent directly afterwards.
Fixed it right up.