Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN: Moving repository trunk to another's branch (with history)

I'm working with an SVN setup with a lot of repositories. I'm trying to consolidate some by moving the trunk of one into the branch of another (the old ones are themed versions of the new one, minus some code fixes I'll be applying later, so it makes sense to me). Short version, I want to go from RepositoryA/trunk to RepositoryB/branches/RepAName.

Ideally, I'd like to maintain the history. I could do an export -> import, but that loses the history and so it isn't ideal. I can't do a dump via svnadmin, since that seems it would overwrite RepositoryB (or fail, but I'm not about to risk losing RepositoryB to find out). So how could I make the move and maintain history, or is it not possible with SVN?

like image 918
Rob Witko Avatar asked Oct 29 '09 19:10

Rob Witko


1 Answers

After svnadmin dump you can specify the parent directory of your import with svnadmin load --parent-dir <dir>, see the svn manual.

like image 197
tangens Avatar answered Sep 28 '22 04:09

tangens