cannot import from Mercurial
bialix at ukr.net
Fri Apr 11 19:14:23 BST 2008
Please tell us version of Mercurial library. I suppose you're using freshly minted hg 1.0.
Probably our import plugins is just out of date. If you have a chance to install previous version
(hg 0.9.5) maybe you could get it running without errors.
I did successful conversion of TortoiseHg codebase with hg-import plugin 2 month ago.
> is there a working way to import from Mercurial? I tried both hg-import and
> fastimport (hg-
> With hgimport I got:
> hunter$ bzr hg-import ~/hg.TeamIntegration/
> bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute
> Traceback (most recent call last):
> File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 834, in
> return run_bzr(argv)
> File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 790, in
> ret = run(*run_argv)
> File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in
> return self.run(**all_cmd_args)
> File "/home/hunter/gwk/.bazaar/plugins/hgimport/__init__.py", line 34, in
> File "/home/hunter/gwk/.bazaar/plugins/hgimport/importer.py", line 260, in
> for rev, inv in self.iter_revisions(pb):
> File "/home/hunter/gwk/.bazaar/plugins/hgimport/importer.py", line 173, in
> revision_id = bzr_revision_id(node)
> File "/home/hunter/gwk/.bazaar/plugins/hgimport/importer.py", line 52, in
> return 'hg-' + mercurial.hg.hex(node)
> AttributeError: 'module' object has no attribute 'hex'
> bzr 1.3.1rc1 on python 2.5.1.final.0 (linux2)
> arguments: ['/usr/bin/bzr', 'hg-import',
> encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'de_DE.UTF-8'
> fastimport /home/hunter/gwk/.bazaar/plugins/fastimport [unknown]
> hgimport /home/hunter/gwk/.bazaar/plugins/hgimport [unknown]
> /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
> qbzr /usr/lib/python2.5/site-packages/bzrlib/plugins/qbzr
> svn /home/hunter/gwk/.bazaar/plugins/svn [unknown]
> *** Bazaar has encountered an internal error.
> Please report a bug at https://bugs.launchpad.net/bzr/+filebug
> including this traceback, and a description of what you
> were doing when the error occurred.
> and with fastimport I got:
> hunter$ ~/.bazaar/plugins/fastimport/exporters/hg-fast-export.py
> --repo=/home/hunter/gwk/hg.TeamIntegration/ bzr fastimport
> Error: repository has at least one unnamed head: hg r6324
> Google didn't find what that message means (well probably all heads are
> "unnamed" in Mercurial, but that's expected, right?).
More information about the bazaar