Bridget the Midget
Bridget the Midget

Reputation: 842

Move SVN repository to folder in another repository

I have two SVN repostitories:

Project A

Project B

Now I wan't to reach this structure:

Projects

I have dumped the two repositories using

svnadmin dump /path/to/repository > repository-name.dmp

How can I restore them to the above structure?

EDIT: This solves my problem! https://stackoverflow.com/a/3141938/885683

Upvotes: 3

Views: 1881

Answers (1)

Waynn Lue
Waynn Lue

Reputation: 11375

The easiest way (assuming you want to keep history) is to just merge one repository into the other. So let's assume you keep the repository for Project A, then you can dump the repository for Project B and merge that to the repository for Project A. See this link for more details.

If you don't want to keep history, just import the most recent code.

edit: I haven't tried this myself, but it should be something like this. (Backup your repo before trying.)

svnadmin dump /path/to/repob > repob.dmp
svnadmin load /path/to/repoa < repob.dmp

Upvotes: 1

Related Questions