Recover a SVN repository from within a SVN repository
OK - so I managed to create a SVN repository within another SVN repository on a remote network svn server. See screenshots for details. I used the Tortoise client when I originally made that fatal error. Bottom line, I just need to pull 开发者_JAVA技巧the data off of the existing repository and place it into the first/original repository.
Export the outer repository (exporting prevents the creation of
.svn
folders) into some folder on your HD. (If it is too big to be exported all, you need to selectively export only the files and folders of the inner repository.) Recover the inner repository from that, and move it wherever you need it, trash the rest of the exported files and folders.Make sure the inner repository you salvaged is working faultlessly.
Delete (
svn delete
) the files and folders of the inner repository from the outer one.
Yes, that leaves you with a confusing piece of history in the outer repository, but usually this is not a problem. (There are ways to remove stuff from a repository's history, but that is complicated and rarely ever worth the bother.)
精彩评论