Visual SVN - .svn/tmp directory may be missing or corrupt
The Admin 9/4/2011 12:28:00 AMAfter messing around trying to create a new repository based on an existing one for a colleague, after importing my project directory and downloading from SVN to a new project I started to make some coding changes. All good.
However, when I came to submit my changes I got the error
".svn/tmp directory may be missing or corrupt"
This turned out to simply be that there was no .svn directory on one of my subdirectories in the project, so I just created it manually.
This worked fine, but when I tried to commit again, I got the same error on a different sub-directory.
Rats! I thought, and checked other directories, alot were missing the magic .svn directory.
So I solved it after a bit of command shell hacking and I present it here to save you a little time should you have the same issue:
Drop to a command prompt and change to your project directory.
Then, at the prompt type the following DOS command:
for /R /D %i in (.svn) do if exist "%i" mkdir "%i/tmp"
This simple script goes thorugh all the subdirectories of the project and creates the required magic .svn directory.
IMPORTANT: Make sure you run 'VisualSVN | Clean up working copy" from the drop down menu after performing this command.
After that, for me, it all submitted OK and have not had any further problems.
If it helps you, let me know by commenting below :-)

