title: SVN Error - Not a working copy
body: <p>Recently our svn server was changed and we did a svn switch.</p>
  
  <p>Since the working copy had a huge amount of unversioned resources, the working copy got locked and we started switching folder by folder for all folders under svn, which works perfectly fine.</p>
  
  <p>But at the top most level of the repository, when I try to update files, I get the <em>svn: Working copy '.' locked</em> error and cleanup is not helping either. When I do cleanup, I get errors like these - <em>svn: 'content' is not a working copy directory</em></p>
  
  <p>Fresh checkout is NOT an option at all. Are there any other ways to cleanup and release the locks and do the switch completely ?</p>
  
  <p><strong>EDIT:</strong> 
  The last paragraph in JesperE's answer</p>
  
  <blockquote>
    <p>If you get a "not a working copy" when
    doing a recursive "svn cleanup" my
    guess is that you have a directory
    which should be a working copy (i.e.
    the .svn directory at the toplevel
    says so), but it is missing its own
    .svn directory. In that case, you
    could try to just remove/move that
    directory and then do a local update</p>
  </blockquote>
  
  <p>seems to be the solution to the problem in the repository. I have identified those folders and did a fresh checkout of those specific folders alone and wow, the locks are released in the subsequent cleanup! Thanks a lot JesperE !!</p>
  
  <p>But, I still cannot figure out the svn switch error which now reads something like,</p>
  
  <blockquote>
    <p>svn: The repository at
    'svn://repourl/reponame/foldername'
    has uuid 'm/reponame', but the WC
    has 'b5b39681-0ff6-784b-ad26-2846b9ea8e7d'</p>
  </blockquote>
  
  <p>Any ideas ?</p>