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 72 forks source link

run_command() got an unexpected keyword argument password #327

Open ruckc opened 6 years ago

ruckc commented 6 years ago

When trying to use hg-git today, ran into an unexpected error. The issue appears with the new versions of dulwich, and it appeared in this commit: https://github.com/dulwich/dulwich/commit/8395a4e84b4245c534f418d8c957d83e071c12cc

** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.14 (default, Oct 31 2017, 21:12:13) [GCC 6.4.0]
** Mercurial Distributed SCM (version 4.3.2)
** Extensions loaded: hggit
Traceback (most recent call last):
  File "/usr/bin/hg", line 45, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 81, in run
    status = (dispatch(req) or 0) & 255
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 162, in dispatch
    ret = _runcatch(req)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 302, in _runcatch
    return _callcatch(ui, _runcatchfunc)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 310, in _callcatch
    return scmutil.callcatch(ui, func)
  File "/usr/lib/python2.7/site-packages/mercurial/scmutil.py", line 150, in callcatch
    return func()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 292, in _runcatchfunc
    return _dispatch(req)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 896, in _dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 658, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 904, in _runcommand
    return cmdfunc()
  File "/usr/lib/python2.7/site-packages/mercurial/dispatch.py", line 893, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
  File "/usr/lib/python2.7/site-packages/mercurial/util.py", line 1077, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/mercurial/commands.py", line 4067, in push
    opargs=opts.get('opargs'))
  File "/usr/lib/python2.7/site-packages/mercurial/extensions.py", line 322, in closure
    return func(*(args + a), **kw)
  File "/usr/lib/python2.7/site-packages/hg_git-0.8.11-py2.7.egg/hggit/util.py", line 56, in inner
    return f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/hg_git-0.8.11-py2.7.egg/hggit/__init__.py", line 384, in exchangepush
    pushop.cgresult = repo.githandler.push(remote.path, revs, force)
  File "/usr/lib/python2.7/site-packages/hg_git-0.8.11-py2.7.egg/hggit/git_handler.py", line 404, in push
    old_refs, new_refs = self.upload_pack(remote, revs, force)
  File "/usr/lib/python2.7/site-packages/hg_git-0.8.11-py2.7.egg/hggit/git_handler.py", line 1113, in upload_pack
    progress=callback)
  File "/usr/lib/python2.7/site-packages/dulwich-0.19.0-py2.7-cygwin-2.10.0-x86_64.egg/dulwich/client.py", line 666, in send_pack
    proto, unused_can_read = self._connect(b'receive-pack', path)
  File "/usr/lib/python2.7/site-packages/dulwich-0.19.0-py2.7-cygwin-2.10.0-x86_64.egg/dulwich/client.py", line 1242, in _connect
    password=self.password, key_filename=self.key_filename)
TypeError: run_command() got an unexpected keyword argument 'password'