svnrepositoryworking-copy

How to fill a new repository with a working copy


I have a working copy checked out and a new empty repository. How can I fill that new repository using the working copy?

I don't have access to the original SVN.

I could delete all .svn dirs and do svn commit, but I'm wondering about some smarter way.

Thanks for tips.


Solution

  • If you want a copy of the repository WITHOUT the ".svn" files, you can do svn export. This will give you a clean copy of the code. Then you simply need to do an svn import or an svn add to get those files into your new repository. Of course, all version history will be lost, but that's what happens when you create a new repository!