M@rkJakes.com

A blog of Mark's musings
  • rss
  • Home
  • Tech Blog
  • Dev Blog
  • Radio Blog
  • Rants
  • Music Interests

Visual SVN - .svn/tmp directory may be missing or corrupt

The Admin 9/4/2011 12:28:00 AM

After 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  :-)

Comments
No Comments
Tags
visualsvn, svn-tmp-directory-may-be-missing-or-corrupt, svn

Leave a Comment

  • Recent Posts

    • Installing VMWare Tools in Fedora16 (FC16) from scratch
    • DotNet4 without the web installer
    • FreeNAS and iSCSI
    • Using XP as an internet router
    • DCOM Errors on Server
  • Popular Posts

    • UK VHF Aeronautical Radio Frequencies
    • Using the 'OUT' parameter in stored procedures in EF4/Silverlight
    • System.Windows.Ria missing when upgrading from SL3 to SL4
    • Load Operation Failed for query 'GetYourRecords'
    • 99 Ways to improve performance on your (windows) PC
  • Recent Comments

    • The Admin on Using XP as an internet router
    • Dave on Using XP as an internet router
    • Matt on Bidfun.co.uk - Too good to be true!
    • The Admin on Exeter Airport Changes to Flight Waypoints
    • The Admin on Writing objects to files – Serialization
Powered by Graffiti CMS
  • design by jide
  • Theme converted to GraffitiCMS by Adonis Bitar