On Fri, Nov 06, 2015 at 06:50:01PM +0100, Jakub Wilk wrote: > 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'
Gah, sorry for that, it's due to mercurial 3.6. I did a very brief test of mercurial-git but I didn't test pushing to git repositories so I missed it. There isn't a new version of mercurial-git yet, so for the time being downgrade to mercurial 3.5.2-2 as workaround. Cheers, Javi
signature.asc
Description: PGP signature