[issue436] trivial argument parsing bug
mathieu clabaut
mercurial-bugs at selenic.com
Wed Nov 29 08:02:18 UTC 2006
New submission from mathieu clabaut <mathieu.clabaut at gmail.com>:
% hg -v pull -v x
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version 0.9.1)
Traceback (most recent call last):
File "/usr/bin/hg", line 12, in ?
commands.run()
File "/var/lib/python-support/python2.4/mercurial/commands.py", line
3266, in run
sys.exit(dispatch(sys.argv[1:]))
File "/var/lib/python-support/python2.4/mercurial/commands.py", line
3372, in dispatch
cmd, func, args, options, cmdoptions = parse(u, args)
File "/var/lib/python-support/python2.4/mercurial/commands.py", line
3297, in parse
args = fancyopts.fancyopts(args, c, cmdoptions)
File "/var/lib/python-support/python2.4/mercurial/fancyopts.py", line
24, in fancyopts
elif dt[map[opt]] is type(1): state[map[opt]] = int(arg)
ValueError: invalid literal for int(): x
(The command is presumably invalid, but hg doesn't give a very helpful
error message.)
-Neil
----------
messages: 2468
nosy: mathieu.clabaut
priority: bug
status: unread
title: trivial argument parsing bug
____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue436>
____________________________________________________
More information about the Mercurial-devel
mailing list