Reputation: 81537
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.)
Upvotes: 7
Views: 2584
Reputation: 12399
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.
Upvotes: 12
Reputation: 2589
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
Upvotes: 0
Reputation: 347546
Copy the source to a new location, remove all the .svn subdirectories. Import the net result.
Upvotes: 0
Reputation: 62914
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.
Upvotes: 0