Migrate from the bazaar to mercury?

I have a small project that I started in the bazaar, as an exercise, to learn bzr. Since then, I have decided that I prefer Mercurial. How can I port this project to Hg?

+6
mercurial bazaar migration
source share
2 answers

I believe your answer can be found here .

Essentially, all that is required is a launch.

$ hg convert bzr-repository-URI Target-hg-dir 
+9
source share

Miles are valid if you are not using Windows. Current Windows installers (1.6.3) do not include python bzrlib, so the conversion with the error ".. \ path \ to \ foo does not look like a Bazaar repository."

After some hesitation and inability to figure out how to get bzrlib and tell hg to use it, I used linux, which I have with the ubuntu vmware device.

I installed mercurial 1.6 from ppa (1.4 is not converted by default), the extension is allowed, and 'hg convert code / foo foo-from-bzr' is launched. It seemed to work, giving me a summary of the log messages. For a while I was embarrassed by that. / foo -from-bzr was empty except for the .hg directory. Some time after floundering, I found that an “hg update” was required. So, to remind:

 # install mercurial 1.6 on ubuntu 10 sudo add-apt-repository ppa:mercurial-ppa/releases sudo apt-get update sudo apt-get install mercurial # the actual conversion hg convert path/to/foo-bzr-branch foo-hg cd foo-hg hg update 

Special thanks to Mads Kiilrich for offering linux on the mercurial mailing list.

UPDATE : the solution for converting from the bazaar to Windows is "... install Python with the necessary additional modules and either install Mercurial from the source or using Python-specific installers from http://bitbucket.org/tortoisehg/thg-winbuild / downloads / - for example, mercurial-1.6.3.win32-py2.6.exe " (source)

+4
source share

All Articles