simple svn project repository migration steps

Tuesday, March 29, 2011

Migrate repositories using the eclipse subclipse plugin.
Note this method will not bring revision history into the new repository, so assumes you will still have ongoing access to the old respository. This technique is useful if the history isn't that rich, and you want a quick switch over, or if you don't directly manage the repositories, so svnadmin commands aren't available (like our case, we use a hosted JIRA solution).

Steps:

  1. Create the new project top-level folder in the new repository. Eg: /NEWREPO/projectA/trunk. Using 'new remote folder' in SVN repositories view is the easiest.
  2. Open the existing project in eclipse
  3. Choose team> switch to another branch/tag/revision.
  4. Choose intended top-level project folder (eg /NEWREPO/projectA/trunk). Note this folder name doesn't have to become the eclipse project name
  5. team> revert the project to remove local changes
  6. team> merge (Install into eclipse the fantastic CollabNet Merge client, if haven't already)
  7. Untick best-practices check and choose 'Merge range of revisions', then Next
  8. Select, then under Root, browse to the exisiting project folder (original repo) (eg /OLDREPO/projectA/trunk)
  9. Commit the project

posted 11:57 am  

0 comments:

Post a Comment