transplant: TypeError: getremotechanges() missing 1 required positional argument: 'revs'
The transplant command
hg transplant -s /ref/nb/src/netbeans HandleUserSpecifiedPreferredScreen
fails with a TypeError. Running the command without hggit succeeds.
hg transplant -s /ref/nb/src/netbeans --config extensions.hggit=! HandleUserSpecifiedPreferredScreen
Console output including traceback
$ hg transplant -s /ref/nb/src/netbeans HandleUserSpecifiedPreferredScreen
** Unknown exception encountered with possibly-broken third-party extension "hggit" 1.0.0 (dulwich 0.20.45)
** which supports versions 6.1 of Mercurial.
** Please disable "hggit" and try your action again.
** If that fixes the bug please report it to https://foss.heptapod.net/mercurial/hg-git/issues
** Python 3.10.4 (main, Jun 29 2022, 12:14:53) [GCC 11.2.0]
** Mercurial Distributed SCM (version 6.2)
** Extensions loaded: convert, evolve 10.5.2, extdiff, fsmonitor, graphlog, hggit 1.0.0 (dulwich 0.20.45), histedit, purge, rebase, share, topic 0.24.1, transplant
Traceback (most recent call last):
File "/home/err/.venv/bin/hg", line 59, in <module>
dispatch.run()
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 143, in run
status = dispatch(req)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 232, in dispatch
status = _rundispatch(req)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 276, in _rundispatch
ret = _runcatch(req) or 0
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 451, in _runcatch
return _callcatch(ui, _runcatchfunc)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 461, in _callcatch
return scmutil.callcatch(ui, func)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/scmutil.py", line 153, in callcatch
return func()
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 441, in _runcatchfunc
return _dispatch(req)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 1254, in _dispatch
return runcommand(
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 899, in runcommand
ret = _runcommand(ui, options, cmd, d)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 1266, in _runcommand
return cmdfunc()
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/dispatch.py", line 1252, in <lambda>
d = lambda: util.checksignature(func)(ui, *args, **strcmdopt)
File "/home/err/.venv/lib/python3.10/site-packages/mercurial/util.py", line 1880, in check
return func(*args, **kwargs)
File "/home/err/.venv/lib/python3.10/site-packages/hgext/transplant.py", line 738, in transplant
return _dotransplant(ui, repo, *revs, **opts)
File "/home/err/.venv/lib/python3.10/site-packages/hgext/transplant.py", line 829, in _dotransplant
source, csets, cleanupfn = bundlerepo.getremotechanges(
TypeError: getremotechanges() missing 1 required positional argument: 'revs'
$ hg transplant -s /ref/nb/src/netbeans --config extensions.hggit=! HandleUserSpecifiedPreferredScreen
searching for changes
warning: repository is unrelated
applying f9f333fe15eb
f9f333fe15eb transplanted to 856921adade2