开发者

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.

Recover a SVN repository from within a SVN repository


  1. 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.

  2. Make sure the inner repository you salvaged is working faultlessly.

  3. 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.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜