如何从包含多个项目的SVN存储库中转出一个项目? [英] How do I dump one project out of an SVN repository which contains multiple projects?

查看:191
本文介绍了如何从包含多个项目的SVN存储库中转出一个项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有许多项目的SVN存储库.我需要将几个项目从该存储库中移出到各个存储库中,每个项目一个,同时保留历史记录.

I am working with an SVN repository with many projects. I need to move a few of the projects out of that repository into individual repositories, one for each project, keeping the history.

我已经能够使用svnadmin dump转储整个存储库并将svnadmin load放入另一个存储库,但是我找不到从原始存储库中仅转储一个项目的方法,因此我可以将其加载到新的那一个.这可能吗?如果可以,怎么办?

I've been able to use svnadmin dump to dump the entire repository and svnadmin load it into another repository, but I can't find a way of dumping only one project from the original repository so I can load it into the new one. Is this possible? If so how?

推荐答案

您可以使用很好的解释如何操作.

You can use the svndumpfilter utility to do this. The SVN book has a good explanation of how to do this.

例如,一种方法是:


$ svnadmin dump /path/to/repo 
     | svndumpfilter include /proj > dump-file
$ svnadmin create /new/proj/repo
$ svnadmin load --ignore-uuid /new/proj/repo < dump-file
$ svn rm file:///path/to/repo/proj

这篇关于如何从包含多个项目的SVN存储库中转出一个项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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