Vlad Krylov
Vlad Krylov

Reputation: 2734

How to create svn repository from working copy?

I have working copy

svn co svn://server.com/sw copy

I search something faster than

svnadmin create /tmp/new
svn co file:///tmp/new new_copy
cp -r copy/* new_copy
svn add new_copy/*
svn ci new_copy

Upvotes: 1

Views: 6613

Answers (2)

Edwin Buck
Edwin Buck

Reputation: 70909

You can try svn import, it commits an unversioned file tree to the repository.

I don't know if it will work well with all of the .svn directories in the original tree being imported into the new repository, but you can use a

find . -name '.svn' | xargs rm -rf

to wipe those out before the import if you find they are problematic.

Upvotes: 2

Clement Herreman
Clement Herreman

Reputation: 10536

Take a look at the svn import command

Upvotes: 1

Related Questions