Converting a Bazaar Repository

Patrick Mézard pmezard at gmail.com
Mon Jan 30 16:20:01 UTC 2012


Le 30/01/12 16:20, A. S. Budden a écrit :
> On 30 January 2012 13:03, Patrick Mézard <pmezard at gmail.com> wrote:
>> Le 30/01/12 09:31, A. S. Budden a écrit :
>>> Dear all,
>>>
>>> Is there any way to convert a Bazaar repository to Mercurial?  I've
>>> been playing around with the convert extension, but it only seems to
>>> be able to convert individual branches.  It also seems to lose the
>>> names of the branches from the history, which is a bit of a shame, but
>>> not a massive problem.
>>>
>>> I have a shared repository with about twenty branches, of which about
>>> four are active.  I'd really like to convert this into a single
>>> Mercurial repository with at least the four branches all present, but
>>> I haven't figured out an obvious way to achieve this.  I wondered if
>>> it might be a case of converting each branch individually into a
>>> separate Mercurial repository and then combining them (but not merging
>>> them) somehow (preserving names except for changing 'trunk' into
>>> 'default'), but I haven't figured out how to do that either!
>>>
>>> Has anyone got any experience of this?
>>
>> Could you find (or build) a public (small) bzr repository to reproduce this problem? There are few people with both knowledge about convert internals and bzr ones so any help is welcome.
> 
> To be honest, I'm not sure... Launchpad (the only public hosting I
> know of for Bazaar) uses a different branching method, so I don't
> think this is particularly valid.  That was why I included a list of
> commands at the end of the email showing how to reproduce the problem.
>  If the mailing list allows attachments, I guess I could create a
> repository, zip it up and send it to the list: would that be helpful?

Uh, sorry about that. I have opened an issue summarizing what you did:

  http://mercurial.selenic.com/bts/issue3229

Thank you for reporting it.
--
Patrick Mézard



More information about the Mercurial mailing list