Bzr fast-import not finding installed Hg
Alexander Belchenko
bialix at ukr.net
Thu Nov 11 09:51:39 GMT 2010
Eli Zaretskii пишет:
>> Date: Thu, 11 Nov 2010 10:30:49 +0200
>> From: Alexander Belchenko <bialix at ukr.net>
>> Cc: bazaar at lists.canonical.com
>>
>> IIUC you have installed standalone version of bzr and maybe hg.
>> To make sure fast-export-from-hg works you have to install python-based
>> versions of bzr *and* hg. Python-based versions required you to have
>> installed Python interpreter and some additional libs, e.g. pywin32.
>
> Is this required only for import from hg, or in general for
> fast-import?
This is required only for *export* from hg.
> Anyway, this sounds like a grave limitation, or even a bug. What is
> missing in the stand-alone version of bzr to have fast-import fully
> supported?
Bazaar stand-alone installer missed several python libraries, at least
mercurial and hg2git libraries. If you look in the
exporters/hg-fast-export.py script you can see the following imports:
from mercurial import repo,hg,cmdutil,util,ui,revlog,node
from hg2git import setup_repo,fixup_user,get_branch,get_changeset
from hg2git import
load_cache,save_cache,get_git_sha1,set_default_branch,set_origin_name
Those libraries are not part of standalone installer, because it's kinda
strange (weird?) to ship Bazaar DVCS with another DVCS inside, isn't it?
Although we ship svn libs inside and nobody complains.
This is fundamental distinctive feature of *standalone* installers on
Windows created with py2exe. There is workaround (although I'd recommend
you using python-based version instead). I can explain that workaround
if you really wish. But first I'll need to explain how imports of python
libraries works in standalone installer under the hood. Are you really
want to hear all gory details?
To fix it in the next standalone installer build somebody should add
mercurial lib and hg2git lib to dependencies of standalone bzr build.
--
All the dude wanted was his rug back
More information about the bazaar
mailing list