[issue2855] Transplant extension calls getremotechanges() with wrong number of args

Michael Allman bugs at mercurial.selenic.com
Thu Jun 16 20:24:12 CDT 2011


New submission from Michael Allman <msa at allman.ms>:

I got the following exception report when running a simple "hg transplant -s 
[repo]" on a local clone:


** unknown exception encountered, please report by visiting
**  http://mercurial.selenic.com/wiki/BugTracker
** Python 2.6.6 (r266:84292, May 25 2011, 11:34:10) [GCC 4.2.1 (Apple Inc. 
build 5666) (dot 3)]
** Mercurial Distributed SCM (version 1.8.4)
** Extensions loaded: churn, fetch, forest, graphlog, hgattic, hggit, 
hgsubversion, progress, rebase, transplant
Traceback (most recent call last):
  File "/opt/local/bin/hg", line 38, in <module>
    mercurial.dispatch.run()
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/s
ite-packages/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/s
ite-packages/mercurial/dispatch.py", line 36, in dispatch
    return _runcatch(u, args)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/s
ite-packages/mercurial/dispatch.py", line 58, in _runcatch
    return _dispatch(ui, args)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/s
ite-packages/mercurial/dispatch.py", line 601, in _dispatch
    cmdpats, cmdoptions)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/s
ite-packages/mercurial/dispatch.py", line 406, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/s
ite-packages/mercurial/dispatch.py", line 655, in _runcommand
    return checkargs()
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/s
ite-packages/mercurial/dispatch.py", line 609, in checkargs
    return cmdfunc()
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/s
ite-packages/mercurial/dispatch.py", line 598, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/s
ite-packages/mercurial/util.py", line 433, in check
    return func(*args, **kwargs)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/s
ite-packages/hgext/transplant.py", line 551, in transplant
    force=True)
  File 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/s
ite-packages/mercurial/extensions.py", line 178, in wrap
    return wrapper(origfn, *args, **kwargs)
TypeError: getremotechanges() takes at least 5 non-keyword arguments (4 
given)

This is an easy problem to fix, however I do not have a patch for you. You 
just need to change line 551 in transplant.py from

force=True)

to

revs=None, bundlename=None, force=True)

Cheers.

----------
messages: 16537
nosy: msa
priority: bug
status: unread
title: Transplant extension calls getremotechanges() with wrong number of args

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2855>
____________________________________________________


More information about the Mercurial-devel mailing list