Create new SVN repository from checkout code (from dead SVN repo)

不羁岁月 提交于 2019-12-11 17:26:08

问题


I have checkout code from svn the repository was remote and is dead now, can I use it to create new SVN repository with history?

If yes, how can I do it?

If no, what are the other best way to handle this kind of situation?

Thanks in advance.


回答1:


As @Thilo already mentioned,

An SVN checkout does not contain the history. The best you can hope for is a consistent, complete, somewhat recent snapshot of the latest state of the trunk.

In order to create a new repository with the same history as the old one, you must have the working backup of the broken repository. You know what Subversion server package is installed on the remote location (the question is tagged with subversion-edge), so I guess that you have access to the remote location. Search for the repository backup in such case.

It's unclear what you mean by "dead SVN repo", BTW. If a repository is corrupted (i.e. fails on svnadmin verify) then you can restore it partially (or even repair it). However, if you completely lost access to the repository and have no backup then you are out of luck.



来源:https://stackoverflow.com/questions/25861512/create-new-svn-repository-from-checkout-code-from-dead-svn-repo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!