[Python-apps-team] Bug#804259: mercurial-git: TypeError: exchangepush() got an unexpected keyword argument 'opargs'

Jakub Wilk jwilk at debian.org
Fri Nov 6 17:50:01 UTC 2015


Package: mercurial-git
Version: 0.8.2-1
Severity: grave

I can't push to git repos:

$ git init gitrepo
Initialized empty Git repository in /home/jwilk/gitrepo/.git/

$ hg clone gitrepo hgrepo
updating to branch default
0 files updated, 0 files merged, 0 files removed, 0 files unresolved

$ cd hgrepo
$ hg push
pushing to /home/jwilk/gitrepo
** Unknown exception encountered with possibly-broken third-party extension git
** which supports versions 3.4 of Mercurial.
** Please disable git and try your action again.
** If that fixes the bug please report it to https://bitbucket.org/durin42/hg-git/issues
** Python 2.7.10+ (default, Oct 10 2015, 09:11:24) [GCC 5.2.1 20151028]
** Mercurial Distributed SCM (version 3.6)
** Extensions loaded: color, convert, gpg, graphlog, strip, mq, pager, progress, purge, rebase, record, shelve, git
Traceback (most recent call last):
  File "/usr/bin/hg", line 43, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 54, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 116, in dispatch
    ret = _runcatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 187, in _runcatch
    return _dispatch(req)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 920, in _dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 679, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 183, in closure
    return func(*(args + a), **kw)
  File "/usr/lib/python2.7/dist-packages/hgext/pager.py", line 139, in pagecmd
    return orig(ui, options, cmd, cmdfunc)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 183, in closure
    return func(*(args + a), **kw)
  File "/usr/lib/python2.7/dist-packages/hgext/color.py", line 525, in colorcmd
    return orig(ui_, opts, cmd, cmdfunc)
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 1051, in _runcommand
    return checkargs()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 1011, in checkargs
    return cmdfunc()
  File "/usr/lib/python2.7/dist-packages/mercurial/dispatch.py", line 917, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 803, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 183, in closure
    return func(*(args + a), **kw)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 803, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/hgext/mq.py", line 3525, in mqcommand
    return orig(ui, repo, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/util.py", line 803, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mercurial/commands.py", line 5426, in push
    opargs=opts.get('opargs'))
  File "/usr/lib/python2.7/dist-packages/mercurial/extensions.py", line 183, in closure
    return func(*(args + a), **kw)
  File "/usr/lib/python2.7/dist-packages/hgext/git/util.py", line 48, in inner
    return f(*args, **kwargs)
TypeError: exchangepush() got an unexpected keyword argument 'opargs'


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 4.2.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages mercurial-git depends on:
ii  mercurial       3.6-1
ii  python-dulwich  0.11.2-1+b1
pn  python:any      <none>

-- 
Jakub Wilk



More information about the Python-apps-team mailing list