如何将SVN信息库迁移到另一个SVN信息库? [英] How do I migrate an SVN repository to another SVN repository?

查看:148
本文介绍了如何将SVN信息库迁移到另一个SVN信息库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种简单的方法可以通过复制所有历史记录将目录从一个存储库复制到另一个存储库?

Is there a simple way to copy a directory from one repository into another repository with copying all of the history?

推荐答案

最简单的方法是使用:

svnadmin dump path/to/repos > repos.out

这将在文件repos.out中为您的存储库(带有历史记录)创建可移植格式.然后,您可以使用

This will create a portable format for your repository (with history) in the file repos.out. You can then use

svnadmin load path/to/newrepos < repos.out

将转储的"存储库加载到新的或现有的存储库中.

to load your 'dumped' repository to the new or existing one.

第5章存储库维护->在其他地方迁移存储库数据具有关于从1.7版开始使用svnadmin dump的注意事项:

Chapter 5. Repository Maintenance -> Migrating Repository Data Elsewhere has this note about using svnadmin dump as of version 1.7:

Subversion存储库转储格式描述版本控制的存储库 仅更改.它不会携带任何有关未提交的信息 事务,文件系统路径,存储库或服务器上的用户锁 配置自定义项(包括挂钩脚本)等等.

The Subversion repository dump format describes versioned repository changes only. It will not carry any information about uncommitted transactions, user locks on filesystem paths, repository or server configuration customizations (including hook scripts), and so on.

这篇关于如何将SVN信息库迁移到另一个SVN信息库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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