将具有修订历史记录的旧代码导入新的SVN存储库 [英] Importing older code with revision history to a new SVN repository

查看:295
本文介绍了将具有修订历史记录的旧代码导入新的SVN存储库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从SVN信息库中检出了一个代码,该代码现在不起作用,因此原来的SVN服务器现在已关闭.

I have a code checkout from an SVN repository which is now not working, so original SVN server is now down.

我们对SVN进行了一些本地更改,但尚未提交.

And we have some local changes into SVN which is yet uncommitted.

如何将现有的具有修订历史记录的代码移到新创建的SVN存储库中?

How can I move the existing code available to us with revision history to the newly created SVN repository?

任何想法都可以开始!

推荐答案

与git不同,svn不会存储每个签出副本的完整历史记录.这意味着历史记录仅存储在您无法正常工作的服务器上.因此,恐怕您有以下选择:

Unlike git, svn doesn't store the complete history with each checked out copy. This means the history is only stored on your not working server. So I'm afraid you have the following options:

  • 根据您的本地副本创建一个新的svn存储库,并删除历史记录
  • 让svn服务器重新工作并保留历史记录
  • 切换到git(类似于第一个选项),以后避免出现此问题

这篇关于将具有修订历史记录的旧代码导入新的SVN存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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