error "does not look like a Bazaar repository"

Mads Kiilerich mads at kiilerich.com
Fri Jan 28 17:15:04 CST 2011


Alastair Hoyle wrote, On 01/28/2011 10:41 AM:
> Hi All
>
> Can anyone help me. I am trying to convert from Bazaar to Mercurial on 
> a Windows XP machine. I have installed 
> tortoisehg-1.1.8-hg-1.7.3-x86.msi. Following the advice on the wiki 
> page http://mercurial.selenic.com/wiki/ConvertExtension 
> <http://www.google.com/url?sa=D&q=http://mercurial.selenic.com/wiki/ConvertExtension> 
> I downloaded and ran mercurial-1.7.3-1.win32-py2.6.exe. This seems to 
> have installed a whole load of stuff into 
> C:\Python26\Lib\site-packages. I then tried to convert a small local 
> repository:-
>
> C:\new_projects>hg convert -s bzr trunk
> assuming destination trunk-hg
> initializing destination trunk-hg repository
> Bazaar modules could not be loaded

You need to install "bzrlib" in C:\Python26\Lib\site-packages. I don't 
know how to do that, but bazaar might have something similar to 
mercurial-1.7.3-1.win32-py2.6.exe - otherwise you will have to install 
bazaar from source.


> I assume the convert installed with Tortoise is not seeing the python 
> modules. How do I make Tortoise see the python modules? Or do I need 
> to run the python version of Hg, if so then how?

Yes, use your python Mercurial for converting. The simple way to avoid 
using the one from TortoiseHg is to uninstall it, but there shouldn't be 
any problems if you are careful with your PATH and verify twice that you 
really are running what you think you are running. Once the repo is 
converted it will be an ordinary Mercurial repository where TortoiseHg 
works just fine.

/Mads


More information about the Mercurial mailing list