|
From: Bryan T. <br...@sy...> - 2013-08-02 10:50:04
|
All, I am going to re-root the SVN repository this morning. Please freeze commits until I have completed this procedure. I have already made a backup of the SVN repo that is current as of r30 (the current committed revision). Thanks, Bryan ----- I'm not sure what steps you took at the beginning, so I can't really advise what happened at the beginning, but here is my suggestion on how to recover from this. There are certainly a number of ways to tackle this, such as just doing a series of svn mv and svn mkdir operations to move stuff to where you want it, but personally, this is what I would do (I recommend reading through the instructions and making sure there are no surprises before starting): 1. make a backup<http://sourceforge.net/p/forge/documentation/rsync%20Backups/>, don't expect any issues, but, just in case. 2. Login to the shell service: ssh -t thompsonbry,mp...@sh...<mailto:mp...@sh...> create 3. from the shell service get an svnadmin dump: svnadmin dump /home/svn/p/mpgraph/code > /home/project-web/mpgraph/mpgraph-svndump shutdown ; exit 4. via Admin -> Tools in project web interface, delete, then recreate the svn repository 5. follow the instructions on the code page (which displays when it's an empty repository) to add the branch/tags/trunk directory structure. 6. log back into the shell, and once there, run an svnadmin load with "trunk" as the parent dir. svnadmin load --parent-dir trunk /home/svn/p/mpgraph/code/ < /home/project-web/mpgraph/mpgraph-svndump 7. Once that's done, Shutdown the shell (since you won't need it anymore), then go to Admin -> Tools again and select "Refresh repository" so the web interface scans in the new changes. Note: I shutdown the shell in between deleting/recreating the repo because the repository is mounted at shell creation time, so we need to do that for it to recognize the new repo Note 2: this will result in all the revisions being off-by-one (since rev 1 will now be adding the branch/tags/trunk structure) Note 3: I tested this concept earlier before writing these steps and you can see the repo on my test project here:https://sourceforge.net/p/strawhat/mpgraph/ Let me know how this goes! Regards, Chris Tsai, SourceForge.net Support ________________________________ [site-support:#4915] Re-root SVN (import did not respect trunk/braches/tags) Status: pending Created: Thu Aug 01, 2013 12:28 PM UTC by Bryan Thompson Last Updated: Thu Aug 01, 2013 12:28 PM UTC Owner: Chris Tsai Hello, the initial import of the mpgraph project did not respect the use of the trunk, branches, and tags directory structure. The files are at the top-level. See https://sourceforge.net/p/mpgraph/code/30/tree/ I would like to fix this so we can begin tagging releases, managing branches, etc. Please advise on the best approach. E.g., should I delete the SVN repository and re-import a snapshot? Or is there a better way of accomplishing this goal? There are very few revisions in SVN to date for this project, but we are at our first release point. It would be nice to retain the commit history up to now, but if it is not possible to do this then we can destroy the exiting SVN and reimport. Thanks, Bryan ________________________________ Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/forge/site-support/4915/ To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ |