Migrating multiple Mercurial branches to Bazaar
Max Bowsher
maxb at f2s.com
Wed Mar 31 16:13:49 BST 2010
On 31/03/10 14:08, Gustavo Narea wrote:
> 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.
Have you considered using bzr-hg instead of bzr-fastimport? That should
allow two people to independently 'bzr branch' related Mercurial
branches, and have Bazaar understand that they are related.
Max.
More information about the bazaar
mailing list