occasional hg user here and currently forced to talk to a git repo: this worked ok for some time but after a recent "upgrade everything" of the package manager (probably affecting hg/hg-git as well) it crashes when trying to do a `hg fetch'. I also tried cloning again but this, too, crashes with

8<------------------------------
importing git objects into hg
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.14 (default, Sep 22 2017, 00:06:07) [GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)]
** Mercurial Distributed SCM (version 4.4.2+517-e01549a7bf0a)
** Extensions loaded: convert, rebase, fetch, graphlog, extdiff, hgk, hgsubversion, hggit, churn, pager, strip, mq, transplant
Traceback (most recent call last):
  File "/opt/local/bin/hg", line 41, in <module>
    dispatch.run()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 88, in run
    status = (dispatch(req) or 0) & 255
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 177, in dispatch
    ret = _runcatch(req)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 318, in _runcatch
    return _callcatch(ui, _runcatchfunc)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 326, in _callcatch
    return scmutil.callcatch(ui, func)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/scmutil.py", line 154, in callcatch
    return func()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 308, in _runcatchfunc
    return _dispatch(req)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 912, in _dispatch
    cmdpats, cmdoptions)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 667, in runcommand
    ret = _runcommand(ui, options, cmd, d)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hgext/pager.py", line 77, in pagecmd
    return orig(ui, options, cmd, cmdfunc)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 920, in _runcommand
    return cmdfunc()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/dispatch.py", line 909, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/util.py", line 1194, in check
    return func(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/util.py", line 1194, in check
    return func(*args, **kwargs)
File "/Users/vdh/hgsubversion/hgsubversion/wrappers.py", line 683, in clone
    orig(ui, source, dest, **opts)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/util.py", line 1194, in check
    return func(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/commands.py", line 1431, in clone
    shareopts=opts.get('shareopts'))
File "/Users/vdh/hgsubversion/hgsubversion/wrappers.py", line 670, in hgclonewrapper
    data['srcrepo'], data['dstrepo'] = orig(ui, *args, **opts)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/hg.py", line 671, in clone
    streamclonerequested=stream)
File "/Users/vdh/hgsubversion/hgsubversion/wrappers.py", line 571, in exchangepull
    return orig(repo, remote, heads, force, bookmarks=bookmarks, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hggit/util.py", line 56, in inner
    return f(*args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hggit/__init__.py", line 348, in exchangepull
    pullop.cgresult = repo.githandler.fetch(remote.path, heads)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hggit/git_handler.py", line 276, in fetch
    imported = self.import_git_objects(remote_name, filteredrefs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hggit/git_handler.py", line 786, in import_git_objects
    self.import_git_commit(commit)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hggit/git_handler.py", line 1021, in import_git_commit
    node = self.repo.commitctx(ctx)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/localrepo.py", line 142, in wrapper
    return orig(repo.unfiltered(), *args, **kwargs)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/localrepo.py", line 1935, in commitctx
    fctx = ctx[f]
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/context.py", line 98, in __getitem__
    return self.filectx(key)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/context.py", line 2476, in filectx
    return self._filectxfn(self._repo, self, path)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial/context.py", line 2373, in getfilectx
    cache[path] = func(repo, memctx, path)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hggit/git_handler.py", line 966, in getfilectx
    copied=copied_path)
TypeError: __init__() takes at least 5 arguments (6 given)
8<---------------------------------------

this happens on a Mac (10.12.6) with hg version 4.4.2+517-e01549a7bf0a and py-hggit @0.8.10 when trying to talk to a git repo at gitlab.com.

any pointer/advice how to proceed would be appreciated... (I especially do not understand why the traceback mentions hgsubversion at all?)

thx,
joerg

--
Using Opera's revolutionary email client: http://www.opera.com/mail/
_______________________________________________
Mercurial mailing list
Mercurial@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial

Reply via email to