2

我有一个颠覆存储库的本地工作副本。该项目的服务器不再存在,但我想使用工作副本,我必须创建一个新的本地存储库,尽可能保留项目的日志和历史记录。

我尝试了很多东西,花了几天时间试图做到这一点,但无法弄清楚。由于我遇到了重定位和 file:/// 协议的问题,我尝试使用 svnserve 并创建一个 Windows 服务。但似乎我的文件夹没有良好的结构。我的 repo 中只有一个 .svn 文件夹,但我发现的信息告诉我应该有 conf、db、hooks 文件夹等......因此我的文件夹不被识别为 svn repo。

是否有可能做到这一点,什么是正确的方法。

我最初的目标是将项目转换为 Git,但由于我未能转换它,我首先尝试使其成为一个有效的 subversion repo。一旦它工作,稍后转换它。

我阅读了很多帖子,但大多数都解释了如何处理服务器上的工作存储库。就我而言,我只有一个旧的工作副本,并且不是由我自己维护的服务器已关闭。

谢谢你的帮助

4

1 回答 1

6

Logs and history are only located on the server and requested everytime when one wants to see them.

As there is no server any more (and no copy of the repository) it is imposible to create a new repository using an old checkout. - Git is different as a clone is a full copy of the repository (logs, history and all other actions are local except for push and pull).

However, it is, of course, possible to create a new subversion repository and use the old data as an initial commit.

于 2015-04-19T00:37:51.587 回答