0.9.1: trivial argument parsing bug

Mathieu Clabaut mathieu.clabaut at gmail.com
Wed Nov 29 08:12:43 UTC 2006


I created Issue436 for the records :
http://www.selenic.com/mercurial/bts/issue436

-mathieu

On 11/28/06, Neil Conway <neilc at samurai.com> wrote:
>
> % 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
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20061129/9b894553/attachment-0003.html>


More information about the Mercurial mailing list