我可以将现有的 Subversion 存储库移动到新的父存储库中(并保留历史记录)吗? [英] Can I move an existing Subversion repository into a new parent repository (and retain the history)?

查看:22
本文介绍了我可以将现有的 Subversion 存储库移动到新的父存储库中(并保留历史记录)吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我为每个项目设置了一个根级存储库,如下所示:

Currently I have a root-level repository set up for each project, like so:

Project1
Project2
Project3
Project5
Project5

我想重新组织它,而不是每个单独的项目都有一个存储库,我只有一个用于每个逻辑分组,然后项目将只是那些组存储库"中的文件夹,例如:

I'd like to reorganise this so that rather than a repository for each individual project, I just have one for each logical grouping, and then the projects would just be folders within those 'group repositories', e.g:

WebSites
    Project1
    Project2
DesktopApps
    Project3
Libraries
    Project4
    Project5

在保留现有存储库的历史记录的同时,这完全可能吗?我环顾四周,但我能找到的只是在同一个存储库中移动文件夹以及将文件夹从存储库移到新存储库中的内容.

Is this at all possible while retaining the history of the existing repositories? I've looked around quite a bit but all I can find is stuff on moving folders about within the same repository, and moving folders out of a repository into a new repository.

无论如何它只用于个人的东西,所以如果它只是一个直接的不"也不是世界末日 - 但很高兴知道所以我不只是把头撞在墙上:)

It's only for personal stuff anyway, so it's not the end of the world if it's just a straight 'no' - but it would be nice to know so I'm not just banging my head against a wall :)

推荐答案

您应该能够转储它,然后将其重新加载到新存储库的子目录中:

You should be able to dump it, then reload it to a subdirectory of a new repository:

svnadmin 转储 http://oldrepo/ > mydump

svnadmin dump http://oldrepo/ > mydump

svnadmin load --parent-dir my/new/folderhttp://newrepo/ <我的转储

svnadmin load --parent-dir my/new/folder http://newrepo/ < mydump

这篇关于我可以将现有的 Subversion 存储库移动到新的父存储库中(并保留历史记录)吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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