views:

2610

answers:

5

When I try to commit SVN reports about 10 old directories as missing.

I've deleted these directories quite a while ago. I've tried to create the same directory again but then SVN reports them as "obstructed" and I can't delete them.

These directories are not in the repository either. They are not affecting my commits directly but TortoiseSVN showing these folders in commit dialog. For sake for keeping my commit dialog clean to see other changes easily I want to get rid of these missing directories.

Is there anyway to solve this other than a clean checkout?

-- It's in the comments of accepted answer for future reference this is the solution which worked for me:

I've created the directory first locally then force to delete and it resolves the problem.

+3  A: 

you must delete these directories from SVN using svn delete and then putting them in ignore

dfa
it says "svn: 'directory-name' does not exist". Which is true physically there is no such a directory exist in my local copy, neither in the repository.
dr. evil
@fm: Can you try `svn delete --force`?
Alan Haggai Alavi
@Alan same results
dr. evil
OK now I found a way, I've created the directory first locally then force to delete and it resolves the problem.
dr. evil
A: 

Try using: SVN update and SVN clean on your local copy. That should fix your problem.

Timotei Dolean
tried that it didn't work
dr. evil
+3  A: 

First is always to try SVN Cleanup if you didn't do that already. If that doesn't work you should check out the whole repository to a new folder and make sure that the folders aren't there at all (delete them with Tortoise otherwise). A Related Question can be found here

Daff
A: 

Have you tried svn cleanup?

Ali
A: 

I came across this situation where I wanted the directory but it wasn't there (while doing SVN switch)

What worked for me was to run "svn up missingDirName" which restored the missing directory and it's contents.

gbegley