views:

34

answers:

2

We would like to move our code from the local SVN server to a hosted solution, how should we copy and re-import the code into the hosted SVN server. The main problem is we don't want to point to the older svn data files while re-importing.

+1  A: 

I have read you questions several times and I really don't see where your problem is. It should by easy to make a clean checkout of your project from your local svn server and then import the working copy to your hosted server.

svn checkout svn://localhost/projectXY c:\working_copy
svn import c:\working_copy svn://remotehost/projectXY    
splash
+3  A: 

I think the svnsync command will do what you want. It allows to replicate repositories remotely, you don't need admin access to source or destination repositories. But you need Subversion 1.4 or newer. For details please read the section on repository replication in the Subversion book.

Edit: I think the intention is to copy the repository including the revision history. AFAIK this will not be accomplished with a simple "checkout + import", like in @splash's answer.

Dubu
revision history was also important for us, but we had to drop some users in the remote repository though. will give this a try