Thursday, August 30, 2007

Import a repository into another repository.

1. First dump the first repository.
svnadmin dump repo1 > repo1.dumpfile
2. Filter if necessary (see svndumpfilter). Not necessary for me.

3. Create a directory in your repository for the project.
svn mkdir projectdir
svn commit -m "getting ready to import new project"
4. Load the project into the repository.
svnadmin load --parent-dir relative/path/to/projectdir repo2 < repo1.dumpfile
5. Now update your working copies.
svn update