Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing/exporting history from SVN to TFS

Are there any import and export tools that would let us move projects into and out of team system with full history and log? Our current SCM is SVN.

PS - Sorry, I know it's a repost, but I didn't get an answer before... :)

like image 410
Sklivvz Avatar asked Sep 20 '08 10:09

Sklivvz


2 Answers

I don't know if you are still interested, but I just went through this with my current employer (my project was using SVN and they wanted to migrate it into TFS at another site).

These are the following steps I used:

  1. Run svndump on your current repo, and take the file to the intended target
  2. Using a svn server (e.g. a local repository) import the file - for this I used VisualSVN Server.
  3. Checkout the SVN repository to a local directory (e.g. svn co <url> Proj_SVN)
  4. Run SvnBridge (from CodePlex) on the same machine
  5. Checkout the TFS repository to a local directory (e.g. svn co http:// localhost:8080/<tfs_server>/<project_repo_path> Proj_TFS)
  6. Using Svn2Svn (from codeplex) I run the following: svn2svn /s:c:\temp\src\Proj_SVN /d:c:\temp\src\Proj_TFS /r:<start_rev>:<end_rev>

Depending on how many revisions, how much data you have and the speed of your network (e.g. it might be faster to run on the TFS server) it could take from 10 minutes onwards to complete each revision.

Anyway this is what I used and it worked for me (painful process though...) - your means might vary.

like image 104
Matthew Savage Avatar answered Oct 25 '22 00:10

Matthew Savage


http://www.timelymigration.com/ is another alternative, had a test run that seemed to work.

like image 42
Heikko Avatar answered Oct 24 '22 23:10

Heikko