Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import TFS History into Mercurial (hg)

Has anyone had any success importing TFS 2008 history into a new Mercurial repository?

The only possible solution I've found to date is to go TFS -> svn -> hg using tfs2svn and then using the Convert Extension but I haven't tried this yet.

like image 260
Kevin Berridge Avatar asked Jun 25 '09 21:06

Kevin Berridge


4 Answers

Here's a blog post on converting TFS to Mercurial from someone who has converted many projects: http://blog.eworldui.net/post/2010/03/16/Mercurial-Conversion-from-Team-Foundation-Server.aspx

like image 127
jwanagel Avatar answered Sep 18 '22 15:09

jwanagel


I just put together a simple tool that synchronizes changesets from TFS to Hg for a single branch, using TF.exe and HG.exe.

http://bitbucket.org/rojepp/tfstohg

Update: The F# port of the tool is more stable and less resource intensive than the C# version: http://bitbucket.org/rojepp/tfstohgfs/

like image 25
Robert Jeppesen Avatar answered Sep 19 '22 15:09

Robert Jeppesen


I couldn't sleep during the weekend, and couldn't get the TFS->SVN->Hg solutions to work reliably, so I wrote a tool for doing exactly this: Tfs2Hg

like image 40
dabide Avatar answered Sep 20 '22 15:09

dabide


The convert extension does not support TFS (as of Mercurial 2.0).

If you can convert to Subversion first, then that is a good option.

This is not unusual — when converting from CVS, some users report better results by first using one of the highly tuned CVS to SVN converters out there, and then converting from SVN to Hg. So don't feel bad about taking this "detour" :-)

like image 42
Martin Geisler Avatar answered Sep 21 '22 15:09

Martin Geisler