Move an SVN respository when the server is dead

前端 未结 3 843
臣服心动
臣服心动 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.

提交回复
热议问题