Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Subversion rearrange repository

Tags:

svn

I have acquired a subversion repository. The problem with it is that everything is in the root (apparently nothing fancy like branching was ever done).

Now I want to reconfigure it to follow standard convention:

/svnpath/repo
             /trunk
             /branches
             /tags

How do I do it and still keep the old history?

like image 875
John Smith Avatar asked Nov 24 '25 16:11

John Smith


1 Answers

Well Option 1 would be to check it out, create the new directories for trunk and what not and move the files into where they need to be then commit. Then blow away your working copy and checkout only trunk to a working copy.

Option 2, and probably the more appropriate or "correct" way would be to do a dump of the repo. Then create another one with the classic structure and import the dump file to trunk. See Migrating a Repository

like image 179
prodigitalson Avatar answered Nov 27 '25 22:11

prodigitalson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!