0.9.1: trivial argument parsing bug

Neil Conway neilc at samurai.com
Tue Nov 28 15:19:21 CST 2006

% 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 ?
  File "/var/lib/python-support/python2.4/mercurial/commands.py", line
3266, in run
  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.)


More information about the Mercurial mailing list