openerp-community team mailing list archive
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
$ git branch 6.1
$ bzr fast-export --export-marks=../bzr.mark ../7.0 --plain | git
$ 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.
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?
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):
Some simple scripting for migrating all branches in a repository:
Therp - Maatwerk in open ontwikkeling
Stefan Rijnhart - Ontwerp en implementatie
tel: +31 (0) 614478606
Mailing list: https://launchpad.net/~openerp-community
Post to : openerp-community@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openerp-communityMore help