Move an SVN respository when the server is dead

前端 未结 3 792
臣服心动
臣服心动 2021-01-17 00:59

My SVN server is dead.

I have another machine I could use as an SVN server and a couple of machines with working copies of the original repository.

Is there

相关标签:
3条回答
  • 2021-01-17 01:20

    You have no backups whatsoever?

    If that's the case, then the simplest approach will be to create a new repository, import the contents of one working directory into it, and then have everyone else check out clean from the new repository. Trying to hack the existing working directories will be more trouble than it's worth.

    You'll want to make sure that the "master" working directory is clean: do an svn revert on it, then remove all .svn directories -- note that there's one at every level of the tree (definitely make a copy before doing this this).

    If you want to preserve changes in other working directories, then you can remove the .svn directories from them and use a tool like cpio to copy the files into the new working directories.

    0 讨论(0)
  • 2021-01-17 01:28

    svn export is the right way to remove .svn folders.

    0 讨论(0)
  • 2021-01-17 01:30

    If you're willing to abandon the history, you could create a new repository and add your working copy as its new content. In order to do this, however, you need to remove all .svn folders first. Some scripting could do that.

    Be sure to do all this with a copy of your working copy, as it seems to be the last thing you have to cling to.

    0 讨论(0)
提交回复
热议问题