Migrating multiple Mercurial branches to Bazaar

Gustavo Narea gustavonarea at 2degreesnetwork.com
Wed Mar 31 14:08:03 BST 2010


Hi, Gordon.

On 31/03/10 13:06, Gordon Tyler wrote:
> Could you describe the commands that you're using to create the Bazaar
> branches and merge them?
>   

Sure:

$ cd /path/to/repositories
$ python
/somewhere/bzrlib/plugins/fastimport/exporters/hg-fast-export.py --repo
hg-trunk > trunk.fi
$ python
/somewhere/bzrlib/plugins/fastimport/exporters/hg-fast-export.py --repo
hg-trunk-branch > trunk-branch.fi
$ bzr init bzr-trunk
$ bzr init bzr-trunk-branch
$ cd bzr-trunk
$ bzr fast-import ../trunk.fi
$ bzr update
$ cd ../bzr-trunk-branch
$ bzr fast-import ../trunk-branch.fi
$ bzr update
$ cd ../bzr-trunk
$ bzr merge ../bzr-trunk-branch

I had to use the front-end directly instead of "bzr fast-export-from-hg"
because that command wasn't available.

I'm using bzr 2.1.0 from the PPA for Ubuntu Karmic.

Cheers,

-- 
Gustavo Narea.
Software Developer.
2degrees, Ltd. <http://www.2degreesnetwork.com/>.




More information about the bazaar mailing list