My first question here.
The subversion repository was deleted but there exists a checkout made from that repository. How would I go ab开发者_如何学编程out rebuilding the repository from the checkout?
You could svn export that checkout to a new location, and then add it all to a new repository. But you cannot get the history back.
Unlike Git, Subversion does not store the entire repository on each machine. What you have is a working folder that is up to date for a certain revision of that repository.
As @marcc suggested, the best thing to do is to create new repository from the existing working folder.
If you use TortoiseSVN, though, you may be able to recover some of the commit log messages. Newer versions of TortosieSVN maintain a log cache, and if you are unable to connect to the repository you will still be able to browse the offline cache. Cut and paste that info (or take a screen shot) for historical purposes, but it will not do much good since you can no longer revert to those revisions anyway.
You can not recreate the repository from a checkout. You can create a new repository, but it will not have any of the history in the one that was deleted. You can recreate your old repository from a backup. You have a backup, right?
You'll lose all history, but simply removing all the .svn directories, create a new repository and add/import all the previously checked out files will get the project back in version control.
The history, though, is flat-out gone. If that's what you need, then ... search for those backup tapes a little longer.
精彩评论