Reputation: 27399
In a previous place I worked with a SVN repository, more than 500 code revisions. Now I got out of job and created a new fresh SVN repo. I wanted to "move" all the content of the old to the new SVN repo. What I did was to checkout, and then import into the new one, but as far as I can see, only the last version of the code is available at the new repo. What could I do in order to "move" it completely?
Thanks
Upvotes: 1
Views: 1248
Reputation: 2049
I prefer using svnsnyc. One advantage is you don't need to have admin access to the old repository. You just need to execute two commands:
init: http://svnbook.red-bean.com/en/1.5/svn.ref.svnsync.c.init.html
sync: http://svnbook.red-bean.com/en/1.5/svn.ref.svnsync.c.sync.html
Upvotes: 0
Reputation: 7208
You have two options.
Dump command:
svnadmin dump /path/repository > RepositoryName.dmp
cd /path/NewRepository
svnadmin create NewRepositoryName
svnadmin load NewRepositoryName< RepositoryName.dmp
Another option is to use the hotcopy command
svnadmin hotcopy SourceRepositoryPath NewRepositoryPath
After that, you need to relocate your working copy to the new repository. To do that, use the switch command.
Upvotes: 3
Reputation: 2469
You need to take svn dump and then populate the new repo with it. Read through
Upvotes: 1