Tom
Tom

Reputation: 1045

How do I restore a repo when I only have the source folder?

There was an accident and I lost my SVN repo directory, though my source folder and all the .svn folders within it are fine. How would I restore the repo using the source folder?

I ran $ svnadmin create /path/to/repo - now what?

Thanks

Upvotes: 0

Views: 47

Answers (1)

sbi
sbi

Reputation: 224049

How would I restore the repo using the source folder?

You can't. SVN keeps the history only in the repository, your working folder is just a snapshot. If you don't have any backups of your repository, the history is gone.

What you can do is to create a new repository and import your working folder there. (Be sure to not to attempt to import the .svn folders.)

Upvotes: 2

Related Questions