schacon / hg-git

mercurial to git bridge, pushed to directly from the hg-git plugin in Hg
GNU General Public License v2.0
620 stars 71 forks source link

Suddenly hg-git won't work at all, spews errors #266

Closed chdiza closed 10 years ago

chdiza commented 10 years ago

This didn't happen yesterday, but today whenever I hg pull -u on any repo that was originally from github, I get this:

pulling from git://github.com/b4winckler/macvim
** Unknown exception encountered with possibly-broken third-party extension hggit
** which supports versions 2.3.1 of Mercurial.
** Please disable hggit and try your action again.
** If that fixes the bug please report it to https://bitbucket.org/durin42/hg-git/issues
** Python 2.7.5 (default, May 16 2013, 13:40:06) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)]
** Mercurial Distributed SCM (version 2.7.1)
** Extensions loaded: hggit, pager, color, progress, record
Traceback (most recent call last):
  File "/Library/Frameworks/python.framework/versions/current/bin/hg", line 5, in <module>
    pkg_resources.run_script('mercurial==2.7.1', 'hg')
  File "build/bdist.macosx-10.8-x86_64/egg/pkg_resources.py", line 492, in run_script
  File "build/bdist.macosx-10.8-x86_64/egg/pkg_resources.py", line 1350, in run_script
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial-2.7.1-py2.7-macosx-10.8-x86_64.egg/EGG-INFO/scripts/hg", line 38, in <module>
    mercurial.dispatch.run()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial-2.7.1-py2.7-macosx-10.8-x86_64.egg/mercurial/dispatch.py", line 28, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial-2.7.1-py2.7-macosx-10.8-x86_64.egg/mercurial/dispatch.py", line 69, in dispatch
    ret = _runcatch(req)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial-2.7.1-py2.7-macosx-10.8-x86_64.egg/mercurial/dispatch.py", line 97, in _runcatch
    return _dispatch(req)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial-2.7.1-py2.7-macosx-10.8-x86_64.egg/mercurial/dispatch.py", line 778, in _dispatch
    cmdpats, cmdoptions)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial-2.7.1-py2.7-macosx-10.8-x86_64.egg/mercurial/dispatch.py", line 549, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial-2.7.1-py2.7-macosx-10.8-x86_64.egg/mercurial/extensions.py", line 188, in wrap
    return wrapper(origfn, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial-2.7.1-py2.7-macosx-10.8-x86_64.egg/hgext/color.py", line 412, in colorcmd
    return orig(ui_, opts, cmd, cmdfunc)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial-2.7.1-py2.7-macosx-10.8-x86_64.egg/mercurial/extensions.py", line 188, in wrap
    return wrapper(origfn, *args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial-2.7.1-py2.7-macosx-10.8-x86_64.egg/hgext/pager.py", line 132, in pagecmd
    return orig(ui, options, cmd, cmdfunc)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial-2.7.1-py2.7-macosx-10.8-x86_64.egg/mercurial/dispatch.py", line 869, in _runcommand
    return checkargs()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial-2.7.1-py2.7-macosx-10.8-x86_64.egg/mercurial/dispatch.py", line 840, in checkargs
    return cmdfunc()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial-2.7.1-py2.7-macosx-10.8-x86_64.egg/mercurial/dispatch.py", line 775, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial-2.7.1-py2.7-macosx-10.8-x86_64.egg/mercurial/util.py", line 506, in check
    return func(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/mercurial-2.7.1-py2.7-macosx-10.8-x86_64.egg/mercurial/commands.py", line 4580, in pull
    remotebookmarks = other.listkeys('bookmarks')
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hg_git-0.4.0-py2.7.egg/hggit/gitrepo.py", line 59, in listkeys
    refs = handler.fetch_pack(self.path)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/hg_git-0.4.0-py2.7.egg/hggit/git_handler.py", line 1037, in fetch_pack
    f, commit = self.git.object_store.add_pack()
ValueError: too many values to unpack
chdiza commented 10 years ago

I should add, this is for hg-git 0.4.0, or whatever is currently what easy_install would install, and dulwich 0.9.1, on Mac OSX 10.8.5.

chdiza commented 10 years ago

Apparently, it's the dulwich 0.9.1 that isn't playing nice. I must've unwittingly upgraded to 0.9.1 in the last 24 hours. Sorry for the noise.

chdiza commented 10 years ago

easy_install put in the new dulwich. Yet easy_install also put in hg-git 0.4.0, which doesn't work with the new dulwich. I hope that a new release of hg-git will be put on pypi soon. In th meantime, I have manually put old dulwich back.