开发者

Moving subversion repositories

Hello

I have the following repositories:

/var/svn-repos/
              /project-repo1/
              /project-re开发者_如何转开发po2/
              /project-repo3/

I would like to change this to:

/var/svn-repos/new-super-repo/
                             /project-folder1/
                             /project-folder2/
                             /project-folder3/

where project-repos1..3 are separate repositories and project-directory1..3 are directories of the "new-super-repo" repository. Is this possible? Will the history from the previous repositories be lost?

Thanks


Yes, you can dump the repositories with svnadmin dump and then use the --parent-dir option of svnadmin load to join them together into a new repository.

Note that this is a one-way process and that you will loose your current revision numbering.


You can create a new repo new-super-repo, and then use svn:externals to reference the other projects (repos) within it. History will be maintained.

Then, when a user checks out new-super-repo, they will also be checking out all the sub-repositories underneath it.

Note that when committing back, you will have to commit at the sub-repository level. Committing at the top-level will not automatically commit all the repos underneath.


you can try out svn switch --relocate FROMPATH TOPATH

I guess this may help you.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜