I have a project in subversion, called inboundem. It was my first, and when I created it, I omitted trunk. I need to get it into the correct structure as inboundem/trunk. I had another project like this, but as there were no revisions, I did svn delete
and then svn import
and that worked well. But I have a lot of revisions with inboundem and I do not want to lose the history.
I cannot do svn move
, as svn will not let me move a project into itself.
I suspect that I need to go down the svnadmin dump/load path, so I have done:
svnadmin dump /subversion/active | svndumpfilter include inboundem > inboundem.dump
and that has created a dump file with all my history for inboundem. But what do I do now?
I suspect that I should do svn delete
and erase the project, then manually edit the dump file and change Node-path everywhere from inboundem to inboundem/trunk, and then do
svnadmin load /subversion/active < inboundem.dump
Is this safe? Is there an easier way? Maybe I should just brute force it, and check out all the revisions one by one, delete the project and then recreate the project revision by revision.
svn mv svn://repo/inboundem svn://repo/trunk
svn mkdir svn://repo/inboundem
svn mv svn://repo/trunk svn://repo/inboundem/trunk
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With