JBoss Community

Re: Moving to git from svn?

created by Andrew Dinn in JBoss Transactions Development - View the full discussion

Tom Jenkinson wrote:

 

Disadvantages would be that we would most likely do a top-skim so for a while the history would be in two places.

 

Does anyone have any particular experience with svn/git migration and can help to argue the case to move or not?

I successfully moved the Byteman repo from SVN to git using svn2git, preserving all history. There were two slightly tricky bits:

  • getting the authors names right -- you need to remap all the names which have been used during checkin otherwise the convert fails. so you might end up redoing the convert a few times beforeyou get them all. this is annoing as the conversion takes quite a long time.
  • pruning branches/tags which had been deleted and then recreated in SVN -- overwritten branches/tags appear with names like 4.1.3.Final@33957. all you need to do is delete these branches/tags after conversion andbefore uploading the lcoal converted repo into github

I think it is well worth doing though. git makes collaboration much much easier both inside and outside the JBoss(TS) team.

Reply to this message by going to Community

Start a new discussion in JBoss Transactions Development at Community