[issue1995] cloning git repo raises exception
gavin
bugs at mercurial.selenic.com
Mon Jan 25 06:30:14 UTC 2010
New submission from gavin <Gavin.Huttley at anu.edu.au>:
trying to clone a git repo and it dies.
Traceback below.
---
[gavin] $ hg clone git://github.com/omnigroup/OmniGroup.git
fetching from : origin
importing Hg objects into Git
Counting objects: 4936, done.
Compressing objects: 100% (3331/3331), done.
Total 4936 (delta 3074), reused 3325 (delta 1517)
importing Git objects into Hg
at: 0/32
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 1.4)
** Extensions loaded: convert, mq, record, fetch, extdiff, transplant,
rebase, graphlog, color, bookmarks, svn, hg-git, crecord
Traceback (most recent call last):
File "/usr/local/bin/hg", line 27, in <module>
mercurial.dispatch.run()
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 16,
in run
sys.exit(dispatch(sys.argv[1:]))
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 30,
in dispatch
return _runcatch(u, args)
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 46,
in _runcatch
return _dispatch(ui, args)
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 449,
in _dispatch
return runcommand(lui, repo, cmd, fullargs, ui, options, d)
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 319,
in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 500,
in _runcommand
return checkargs()
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 454,
in checkargs
return cmdfunc()
File "/Library/Python/2.6/site-packages/mercurial/dispatch.py", line 448,
in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
File "/Library/Python/2.6/site-packages/mercurial/util.py", line 386, in
check
return func(*args, **kwargs)
File "/Library/Python/2.6/site-packages/mercurial/extensions.py", line
116, in wrap
util.checksignature(origfn), *args, **kwargs)
File "/Library/Python/2.6/site-packages/mercurial/util.py", line 386, in
check
return func(*args, **kwargs)
File "/Users/gavin/DevRepos/hgsubversion/hgsubversion/wrappers.py", line
385, in clone
update=not opts.get('noupdate'))
File "/Library/Python/2.6/site-packages/mercurial/hg.py", line 187, in
clone
src_repo = repository(ui, source)
File "/Library/Python/2.6/site-packages/mercurial/hg.py", line 63, in
repository
repo = _lookup(path).instance(ui, path, create)
File "/Users/gavin/DevRepos/hg-git/gitrepo.py", line 17, in __init__
git.fetch('origin')
File "/Users/gavin/DevRepos/hg-git/git_handler.py", line 107, in fetch
self.import_git_objects(remote_name, refs)
File "/Users/gavin/DevRepos/hg-git/git_handler.py", line 644, in
import_git_objects
self.import_git_commit(commit)
File "/Users/gavin/DevRepos/hg-git/git_handler.py", line 801, in
import_git_commit
node = self.repo.commit_import_ctx(ctx, pa, force_files)
File "/Users/gavin/DevRepos/hg-git/hgrepo.py", line 57, in
commit_import_ctx
new[f] = self.filecommit(fctx, m1, m2, linkrev, trp, changed)
AttributeError: 'svnlocalrepo' object has no attribute 'filecommit'
----------
messages: 11505
nosy: gavin
priority: bug
status: unread
title: cloning git repo raises exception
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue1995>
____________________________________________________
More information about the Mercurial-devel
mailing list