← Back to team overview

openerp-community team mailing list archive

Re: Repository migration to Git

 

Thanks for the advice.

  I think I got it working.
  It seems to me you should repeat the process for each branch to migrate:

    $ bzr branch lp:<project>/6.1
    $ bzr branch lp:<project>/7.0
    $ mkdir git-repo && cd git-repo
    $ git init
    $ bzr fast-export --export-marks=../bzr.mark ../6.1 --plain | git
fast-import --export-marks=../git.mark
    $ git branch 6.1
    $ bzr fast-export --export-marks=../bzr.mark ../7.0 --plain | git
fast-import --export-marks=../git.mark
    $ git branch 7.0
    $ git checkout master  # to populate the still empty worktree

  I'm not sure if history is correct, I'll have to check further:
  Maybe  git fast-import should be given --import-marks ?

  Please raise a flag if anyone sees something wrong.

  Regards

/DR

Quoting Stefan <stefan@xxxxxxxx>:
On 13-06-14 16:26, Daniel Reis wrote:  > Hello all,

   I was willing to give a try on migrating repositories from LP to GitHub.
Could someone share the state of the art on this - is there any migration scripts available?
  Hi Daniël,

as for branches, the keyword seems to be fastimport, supported in git and bzr (plugin). This seems a nice writeup (incl. a link the necessary filter) on how to preserve Launchpad bug references (haven't used it myself yet): http://www.fusonic.net/en/blog/2013/03/26/migrating-from-bazaar-to-git/

Some simple scripting for migrating all branches in a repository: http://stackoverflow.com/questions/19930832/converting-big-bzr-repository-to-git-what-to-expect

  Cheers,
  Stefan


  --
  Therp - Maatwerk in open ontwikkeling

  Stefan Rijnhart - Ontwerp en implementatie

  mail: stefan@xxxxxxxx
  tel: +31 (0) 614478606
  web: http://therp.nl


  _______________________________________________
  Mailing list: https://launchpad.net/~openerp-community
  Post to     : openerp-community@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openerp-communityMore help   : https://help.launchpad.net/ListHelp

Follow ups

References