重新创建 svn 存储库 [英] recreating svn repository

查看:67
本文介绍了重新创建 svn 存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在服务器发生重大故障后,svn 存储库被破坏,我的工作版本是最新版本,

after a major server fault, svn repository was destroyed and my working version is most current one,

从我的工作版本重新创建 svn 存储库的方法是什么?

what is the way to recreate svn repository from my working version?

在新服务器上安装 svn 并尝试我的工作副本后

after installing svn on a new server and trying at my working copy

 svn switch NEW_SVN_PATH .

出现错误

 Repository UUID '1c604742-6b16-462b-86e4-cc8bce959242' doesn't match expected UUID '6df69aeb-a72c-450d-8102-24036a3855f7'

推荐答案

  1. 存储在旧存储库中的开发历史已丢失.

  1. The development history that was stored in your old repository is lost.

您可以使用工作副本的当前内容创建一个新的存储库,但这将是一个真正的存储库.你不能switch到它,即使是--relocate也不能.

You can create a new repository with the current contents of your working copy, but this will truly be a new repository. You can't switch to it, not even with --relocate.

如果您已经设法将工作副本的内容导入到新存储库中,则只需将其签出即可.如果不是:

If you've already managed to import the contents of your working copy into the new repository, you just need to check it out. If not:

svn export WORKING_COPY WORKING_COPY.export  # the exported copy will contain no .svn dirs
svn import WORKINGCOPY.export svn://example.com/new-repository
svn checkout svn://example.com/new-repository NEW_WORKING_COPY

这篇关于重新创建 svn 存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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