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.
If you are using TortoiseSVN, just do a Check for Modifications, sort by the Status column, select all the entries marked missing , right-click to open the context menu, and select Delete. Finally, commit to publish the changes to the repository.
To remove a file from a Subversion repository, change to the directory with its working copy and run the following command: svn delete file… Similarly, to remove a directory and all files that are in it, type: svn delete directory…
Using svn to delete a file from your working copy deletes your local copy of the file, but merely schedules it to be deleted from the repository. When you commit, the file is deleted in the repository. $ svn delete myfile D myfile $ svn commit -m "Deleted file 'myfile'." Deleting myfile Transmitting file data .
How do I uninstall TortoiseSVN? Simply uninstall from Add/Remove Programs in the Windows control panel. This does not affect your repositories or working copies at all.
you must delete these directories from SVN using svn delete and then putting them in ignore
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.
this answer works very well.
first recreate the missing folder running "svn up missingDirName"
then delete it again in svn's grammer "svn del missingDirName"
at last commit it "svn ci"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With