【问题标题】:How to migrate SVN repository to existing SVN repository with history and with different target path如何将 SVN 存储库迁移到具有历史记录和不同目标路径的现有 SVN 存储库
【发布时间】:2012-07-30 09:10:51
【问题描述】:

对于我当前的项目,我必须使用结构移动我现有的 SVN 存储库:

/myproject/trunk/code

/existing/server/projects/myproject/trunk/code

同时保留历史。我可以访问这两个存储库。

我找到了当前的选项,但我不确定解决方案:

svnadmin dump / load - Can this load into an existing repository?
svnsync - Can this load into an existing repository with a different path?

知道如何解决我的问题吗?

【问题讨论】:

  • 作为一名 SVNKit 开发人员,我知道一个解决方案。但它涉及一些编程(根据您喜欢的语言使用 SVNKit、libsvn 或 AlienSVN)。如果您找不到任何现成的解决方案,请联系我,我会描述如何做到这一点。

标签: svn migrate


【解决方案1】:

如果你有相同的设置和版本的 SVN 服务器,为什么不停止两个服务器并制作一个 tarball 来复制?

PS。使用根本没有数据库的 Git 是多么容易:-)

【讨论】:

  • -1:你将如何合并这两个 tarball?修订号和日志如何对应?
  • 合并?这个词是“移动”。如果那是合并或只是目录树的重组没有被告知。
  • 实际上,我怀疑这是正确/最简单的答案; OP 似乎不想 merge 两个 repos - 他只是想将一个 dir 结构的内容移动到另一个恰好位于不同服务器上的内容中。
  • 乍一看,这可能是外部回购之类的东西。或者任何东西。在 sVN 中没有给出关于布局的信息,任何文件夹都可能是任何东西。
猜你喜欢
  • 1970-01-01
  • 2011-01-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-11-23
  • 2023-04-09
  • 2011-02-02
相关资源
最近更新 更多