Closed Bug 903624 Opened 12 years ago Closed 10 years ago

qimportbz not compatible with Mercurial 2.7 ("TypeError: promptchoice() takes at most 3 arguments (4 given)")

Categories

(Developer Services :: Mercurial: qimportbz, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 967280

People

(Reporter: gps, Assigned: ekr)

Details

(Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1103] )

Attachments

(1 file)

qimportbz blows up with Mercurial 2.7 :( Traceback (most recent call last): File "/home/gps/bin/hg", line 38, in <module> mercurial.dispatch.run() File "/home/gps/lib/python/mercurial/dispatch.py", line 28, in run sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255) File "/home/gps/lib/python/mercurial/dispatch.py", line 69, in dispatch ret = _runcatch(req) File "/home/gps/lib/python/mercurial/dispatch.py", line 97, in _runcatch return _dispatch(req) File "/home/gps/lib/python/mercurial/dispatch.py", line 778, in _dispatch cmdpats, cmdoptions) File "/home/gps/lib/python/mercurial/dispatch.py", line 549, in runcommand ret = _runcommand(ui, options, cmd, d) File "/home/gps/lib/python/mercurial/extensions.py", line 188, in wrap return wrapper(origfn, *args, **kwargs) File "/home/gps/lib/python/hgext/pager.py", line 132, in pagecmd return orig(ui, options, cmd, cmdfunc) File "/home/gps/lib/python/mercurial/extensions.py", line 188, in wrap return wrapper(origfn, *args, **kwargs) File "/home/gps/lib/python/hgext/color.py", line 412, in colorcmd return orig(ui_, opts, cmd, cmdfunc) File "/home/gps/lib/python/mercurial/dispatch.py", line 869, in _runcommand return checkargs() File "/home/gps/lib/python/mercurial/dispatch.py", line 840, in checkargs return cmdfunc() File "/home/gps/lib/python/mercurial/dispatch.py", line 775, in <lambda> d = lambda: util.checksignature(func)(ui, *args, **cmdoptions) File "/home/gps/lib/python/mercurial/util.py", line 506, in check return func(*args, **kwargs) File "/home/gps/lib/python/mercurial/extensions.py", line 143, in wrap util.checksignature(origfn), *args, **kwargs) File "/home/gps/lib/python/mercurial/util.py", line 506, in check return func(*args, **kwargs) File "/home/gps/.mozbuild/hg_extensions/qimportbz/__init__.py", line 186, in qimporthook newpatchname = checkpatchname(patch) File "/home/gps/.mozbuild/hg_extensions/qimportbz/__init__.py", line 124, in checkpatchname 0) TypeError: promptchoice() takes at most 3 arguments (4 given)
Attached patch promptchoice fixSplinter Review
Assignee: nobody → ekr
Status: NEW → ASSIGNED
Comment on attachment 790931 [details] [diff] [review] promptchoice fix The promptchoice interface has changed. This patch fixes things for current hg, but probably needs to be conditionalized on hg version
Summary: qimportbz not compatible with Mercurial 2.7 → qimportbz not compatible with Mercurial 2.7 ("TypeError: promptchoice() takes at most 3 arguments (4 given)")
Product: Other Applications → Developer Services
Whiteboard: [kanban:engops:https://kanbanize.com/ctrl_board/6/85]
Whiteboard: [kanban:engops:https://kanbanize.com/ctrl_board/6/85] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1094] [kanban:engops:https://kanbanize.com/ctrl_board/6/85]
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1094] [kanban:engops:https://kanbanize.com/ctrl_board/6/85] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1101] [kanban:engops:https://kanbanize.com/ctrl_board/6/85]
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1101] [kanban:engops:https://kanbanize.com/ctrl_board/6/85] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1103] [kanban:engops:https://kanbanize.com/ctrl_board/6/85]
Whiteboard: [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1103] [kanban:engops:https://kanbanize.com/ctrl_board/6/85] → [kanban:engops:https://mozilla.kanbanize.com/ctrl_board/6/1103]
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: