← Back to team overview

duplicity-team team mailing list archive

Re: Converting duplicity from bzr to git

 

All,

On 23/06/2019 19:54, Aaron wrote:
I did also find a number of tools to help this. The Launchpad page:

https://help.launchpad.net/Code/Git

has a section at the bottom with a bunch of other links.

I have now had another play with this. Following this:

http://blog.timmattison.com/archives/2011/06/13/how-to-convert-from-bzr-to-git-on-debianubuntu/

The following commands appear to result in a usable git history:

==

bzr branch lp:duplicity bzr-master
bzr branch lp:duplicity/0.7-series

mkdir git-repo ; cd git-repo ; git init .

bzr fast-export --export-marks=../marks.bzr ../bzr-master | sed -e 's/Kenneth Loafman kenneth@xxxxxxxxxxx> <>/Kenneth Loafman <kenneth@xxxxxxxxxxx>/' | git fast-import --export-marks=../marks.git

bzr fast-export --export-marks=../marks.bzr --git-branch=0.7-series ../0.7-series | sed -e 's/Kenneth Loafman kenneth@xxxxxxxxxxx> <>/Kenneth Loafman <kenneth@xxxxxxxxxxx>/' | git fast-import --import-marks=../marks.git --export-marks=../marks.git

==


Kind regards,

Aaron



References