Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Splitting up an SVN Repository

so when trying to set up an SVN server I somehow managed to make our repositories folder a single repository, and every repository created after that was treated as part of that repository. Now I have a multiple projects living in one repository that need to be separate. Is there a way to separate these folders out into separate repositories?

EDIT: it seems like this could be done with svnadmin dump and svnadmin load but I can't figure out how to dump a folder within a repository, instead of dumping the entire repository.

like image 828
GSto Avatar asked Jun 22 '11 19:06

GSto


1 Answers

You do a svnadmin dump of the entire repository, but when you do your load, you use svndumpfilter to filter out the parts of the repository you don't want to load.

You'd use it like this:

$ svnadmin dump svn_repos > svn.dump  #Entire repository
$ svndumpfilter include "foo" < svn.dump > foo.dump #Filter out just "foo"
$ svnadmin load --parent-dir / svn_foo_repos < foo.dump  #Load "foo" in own repos

I haven't used it in a while, so my memory might be a bit rusty, but the Subversion Red-Bean book is pretty good.

like image 178
David W. Avatar answered Oct 02 '22 18:10

David W.