从签出代码(从无效的SVN存储库)创建新的SVN存储库 [英] Create new SVN repository from checkout code (from dead SVN repo)

查看:115
本文介绍了从签出代码(从无效的SVN存储库)创建新的SVN存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从svn存储库中签出代码是远程的,现在已经死了,我可以用它来创建具有历史记录的新SVN存储库吗?

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?

谢谢.

推荐答案

如@Thilo所述,

SVN检出不包含历史记录.最好的希望 是最新的一致,完整,最新的快照 树干的状态.

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.

为了创建一个具有与旧数据库相同的历史记录的新存储库,您必须具有损坏的存储库的有效备份.您知道在远程位置上安装了什么Subversion服务器软件包(问题标记为),因此我想您可以访问远程位置.在这种情况下,搜索存储库备份.

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.

目前尚不清楚您所说的死SVN回购"是什么意思,顺便说一句.如果存储库已损坏(即svnadmin verify失败),则可以对其进行部分还原(甚至修复).但是,如果您完全失去了对存储库的访问权限并且没有备份,那么您将很不走运.

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.

这篇关于从签出代码(从无效的SVN存储库)创建新的SVN存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆