get back deleted .svn folder

6.2k views Asked by At

On my server I have subversion installed, but I accidently removed the .svn folder from the root so the folder is no more under version control.

When i try to make a new checkout, I get an error

svn: 'repo' is already a working copy for a different URL

Thats probably because .svn is still available in sub-folders.

How can I get back the .svn folder so that I have subversion available?

2

There are 2 answers

0
Cédric Julien On BEST ANSWER

try to checkout your repo in a fresh folder, then copy the root .svn directory into your old root folder, it should do the stuff.

0
JB Nizet On

You could delete everything and checkout a fresh copy. Or you could try letting everything in place and checkout with a depth of 1. See http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.checkout.html