开发者

Export only a select project from a repository with all history / revision?

开发者 https://www.devze.com 2023-02-05 21:57 出处:网络
I have a project in repository A and I\'m setting up a new repository B. I am currently using svnsync to synchronize two repositories in an effort to make a copy of the first and then I intend to rem

I have a project in repository A and I'm setting up a new repository B.

I am currently using svnsync to synchronize two repositories in an effort to make a copy of the first and then I intend to remove the other projects leaving only mine behind.

I'm wondering if there is a better way wherein only my project in repository A is "exported" (along with ALL history / transactions).

I'm using svn 1.4.2 on the开发者_运维知识库 target system and I dont have much permission on the source system except a read/write account.


This is what svndumpfilter is designed for. If you're not able to run it directly on the repository, first let svnsync do its job until you have a complete copy, and then perform the svnadmin dump - svndumpfilter - svnadmin load step.

For example:

svnadmin dump original_repos | svndumpfilter include myproject | svnadmin load my_repos
0

精彩评论

暂无评论...
验证码 换一张
取 消