From c1e9761a784a5fda715a7e24f7a17c6d0a6bcd5d Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Tue, 2 Aug 2011 09:46:39 -0700 Subject: [PATCH] Instructions for running the git-bzr-ng migration. Change-Id: Ic3f9db456d6f6e9ae5c5081735e302047c9c5361 --- doc/gerrit.rst | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/doc/gerrit.rst b/doc/gerrit.rst index c1416815..d3421bda 100644 --- a/doc/gerrit.rst +++ b/doc/gerrit.rst @@ -491,6 +491,34 @@ As a github openstack admin: * Visit the gerrit team admin page * Add the new repository to the gerrit team +Migrating a Project from bzr +============================ + +Add the bzr PPA and install bzr-fastimport: + + add-apt-repository ppa:bzr/ppa + apt-get update + apt-get install bzr-fastimport + +Doing this from the bzr PPA is important to ensure at least version 0.10 of +bzr-fastimport. + +Clone the git-bzr-ng from termie: + + git clone https://github.com/termie/git-bzr-ng.git + +In git-bzr-ng, you'll find a script, git-bzr. Put it somewhere in your path. +Then, to get a git repo which contains the migrated bzr branch, run: + + git bzr clone lp:${BRANCHNAME} ${LOCATION} + +So, for instance, to do glance, you would do: + + git bzr clone lp:glance glance + +And you will then have a git repo of glance in the glance dir. This git repo +is now suitable for uploading in to gerrit to become the new master repo. + .. _acl: Access Controls