IndexError: list index out of range

TK Soh teekaysoh at gmail.com
Sun Aug 17 19:39:52 CDT 2008


On Sun, Aug 17, 2008 at 6:07 AM, Ondrej Certik <ondrej at certik.cz> wrote:
> Hi,
>
> I got this stacktrace when doing "hg qpush":
>
> $ hg qpush
> applying 1645.diff
> Unable to read 1645.diff
> ** unknown exception encountered, details follow
> ** report bug details to http://www.selenic.com/mercurial/bts
> ** or mercurial at selenic.com
> ** Mercurial Distributed SCM (version 1.0.1)
> Traceback (most recent call last):
>  File "/usr/bin/hg", line 20, in <module>
>    mercurial.dispatch.run()
>  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
> 20, in run
>    sys.exit(dispatch(sys.argv[1:]))
>  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
> 29, in dispatch
>    return _runcatch(u, args)
>  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
> 45, in _runcatch
>    return _dispatch(ui, args)
>  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
> 364, in _dispatch
>    ret = _runcommand(ui, options, cmd, d)
>  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
> 417, in _runcommand
>    return checkargs()
>  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
> 373, in checkargs
>    return cmdfunc()
>  File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
> 356, in <lambda>
>    d = lambda: func(ui, repo, *args, **cmdoptions)
>  File "/var/lib/python-support/python2.5/hgext/mq.py", line 1942, in push
>    mergeq=mergeq)
>  File "/var/lib/python-support/python2.5/hgext/mq.py", line 833, in push
>    top = self.applied[-1].name
> IndexError: list index out of range
>
> $ hg --version
> Mercurial Distributed SCM (version 1.0.1)

OT: I read on the blog that the OP has decided to switch to git
because of this, and other, problems in Mercurial. Maybe something
does require fixing here beyond this bug.


More information about the Mercurial mailing list