Skip to content

Instantly share code, notes, and snippets.

@pocheptsov
Created August 12, 2015 19:38
Show Gist options
  • Save pocheptsov/522cf1008b8421b7dba1 to your computer and use it in GitHub Desktop.
Save pocheptsov/522cf1008b8421b7dba1 to your computer and use it in GitHub Desktop.
Migrating from bazaar to git
# optionally create plugins directory
mkdir $HOME/.bazaar/plugins
# clone plugin repository
cd $HOME/.bazaar/plugins
bzr branch lp:bzr-fastimport fastimport
# clone dependency repo
bzr branch lp:python-fastimport python_fastimport
python setup.py install
# check bzr plugins
bzr plugins
# go to repo folder
cd $HOME/repos/my-project
# optionally init git repo
git init
# migrate from bazaar to git
bzr fast-export --git-branch=master | git fast-import
# for migrating bazaar commit metadata cosult
# http://www.fusonic.net/en/blog/2013/03/26/migrating-from-bazaar-to-git/
# https://gist.github.com/davidroth/5243901
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment