Skip to content

Instantly share code, notes, and snippets.

@toolness
Last active January 19, 2019 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toolness/cc8a3e00bf3b523492e51b0559ea54f5 to your computer and use it in GitHub Desktop.
Save toolness/cc8a3e00bf3b523492e51b0559ea54f5 to your computer and use it in GitHub Desktop.
Notes on converting a Bazaar repository to git

I started with this Dockerfile:

FROM python:2.7

RUN pip install bzr

# Um, the following line might not actually do anything useful,
# possibly because we just installed bzr via pip instead of apt-get.
RUN apt-get update && apt-get --assume-yes install bzr-fastimport

RUN pip install fastimport

And made this docker-compose.yml:

version: '2'
services:
  app:
    build: .
    volumes:
      - .:/app
    working_dir: /app

Then I ran docker-compose run app bash and once inside had to manually install bzr-fastimport (for some reason pip install bzr-fastimport didn't work, and uh, I guess the apt-get install bzr-fastimport didn't really do anything either) by checking out its repository via bzr and then running python setup.py install in it.

Then I followed the instructions from migrating to git.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment