I made the mistake of creating a Subversion repository without the usual trunk
, branches
, and tags
directories. That is, the root dire
Used therefromhere's answer, which worked fine, but wanted to add the commands including the parameters, i.e. as executed on the svn server's command line:
Dump your existing repository into a file:
svnadmin dump /path/to/myrepo/ > /some/dir/myproject.svndump
Create a new repository:
svnadmin create /path/to/mynewrepo/
Add the trunk/
folder and commit it, in the working copy directory:
mkdir trunk; svn add trunk; svn commit trunk -m "Add: trunk folder"
Load the dumpfile into the new repository using trunk
as parent-dir
:
svnadmin load --parent-dir trunk /path/to/mynewrepo/ < /some/dir/myproject.svndump