$ mkdir git-venus
$ cd git-venus
$ git init
Initialized empty Git repository in /home/rubys/tmp/git-venus/.git/
$ cd ..
Now attempt the push.
$ cd bzr-venus
$ bzr dpush ../git-venus
bzr: ERROR: exceptions.AssertionError: type was None
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
attaching the crash file
and including a description of the problem.
The crash file is plain text and you can inspect or edit it to remove
Try Michael’s approach, using svn as an intermediary:
$ svnadmin create --fs-type fsfs svn-venus
$ cd bzr-venus
$ bzr push ../svn-venus
Initialising Subversion metadata cache in /home/rubys/.cache/bazaar/svn/0217a4d8-8507-45f3-96a1-39a8aa88a6d6.
bzr: ERROR: These branches have diverged. See "bzr help diverged-branches" for more information.
Relevant version information:
$ bzr --version
Bazaar (bzr) 2.1.1
Python interpreter: /usr/bin/python 2.6.5
Python standard library: /usr/lib/python2.6
Bazaar configuration: /home/rubys/.bazaar
Bazaar log file: /home/rubys/.bzr.log
Copyright 2005-2010 Canonical Ltd.
bzr comes with ABSOLUTELY NO WARRANTY. bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU
General Public License version 2 or later.
Bazaar is part of the GNU Project to produce a free operating system.
$ git --version
git version 184.108.40.206
$ svn --version
svn, version 1.6.6 (r40053)
compiled Dec 12 2009, 05:06:12
Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).
The following repository access (RA) modules are available:
* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles 'http' scheme
- handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- with Cyrus SASL authentication
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
Why not use a tool made specifically to convert repositories from one format to another, such as Tailor? Or use fast-export/fast-import which — I believe — bzr and git bot support? FWIW while git-bzr didn’t live up to its promises of bidirectionallity, it did convert several bzr repos flawlessly to git ones.
The third (and a bit more gore, though much less than using SVN as an intermediate) option I’d consider (if those above failed) would be using hg-convert for bzr->hg and hg-git for hg->git (a reverse of the initial role of the extension, but I’ve seen people use it to have git as an hg client so...)