Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • hg-git hg-git
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 79
    • Issues 79
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

April 05-07 - Mercurial Paris Conference 2023 - One day of workshop dedicated to Heptapod and Mercurial usage and workflow. There are still places available for both workshops and talks!

  • mercurialmercurial
  • hg-githg-git
  • Issues
  • #392
Closed
Open
Issue created Sep 08, 2022 by Ernie Rael@errael

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
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking