I have an old but very important Subversion repository for which I haven’t created form the start the usual structure: trunk, branches, tags. So all my files for this repository are residing in the root.
I know how to create the new folders and move all my files in trunk but if I do that I will lose my project’s history for 3 years, since ‘trunk’ is a new folder. So is there a solution to move my entire project’s history from root to the trunk folder?
Thanks!
Yes. You can use svnadmin dump which will dump the repository along with history to a file. You can then use svnadmin load to load the dump file into the trunk folder. Once that’s done, delete the files from root.
Dump Doc: http://svnbook.red-bean.com/en/1.1/re31.html
Load Doc: http://svnbook.red-bean.com/en/1.0/re36.html