views:

278

answers:

4

What's the best/easiest/fastest way to move a project from a local copy to a new repository?

The machine hosting the original repository died and i am in the process of recreating a repo on a new machine from local copies.

EDIT: i should have mentioned that all the clients are Windows machines and only one has cygwyn (to support the rm command.)

A: 
rm -rf `find . -name .svn`
svn import [...]

Of course, you'll have not history, since your original repo died, and you must not have a backup.

timdev
A: 

Copy the source to a new location, remove all the .svn subdirectories. Import the net result.

Brian R. Bondy
A: 

If the original repository is dead, then you have lost the history. The best thing to do is delete the .svn directories in the tree (rm -rf find ./ -iname .svn) and re-import the source onti a new repository created on the new server

Clinton Bosch
+8  A: 

Everyone here is suggesting to delete the svn folders. SVN has a "export" command to make a copy of the folder without the .svn folders, which is ready for import later.

marcc
Oh, good catch! Never noticed that second usage before.
timdev
Would this not require a connection to the repo -- which is now gone -- in order to work? (cvs export pulls from the repo, is svn export any different?)
Kevin Panko
Thanks Marc. This was by far the cleanest suggestion and the one i ended up following. The reason i won't upvote other answers is that they only accounted for the .svn folders and also assumed the availability of an rm command. There are many folders and files that need to be "cleaned" out before a proper import can be made and which the Tortoise export takes care of. (bin folders for example.)
Paul Sasik