[issue2422] exception IndexError in update after revert

hynekcer bugs at mercurial.selenic.com
Tue Oct 5 20:38:02 UTC 2010


New submission from hynekcer <hynek at sdb.cz>:

I found an exception
  IndexError: list index out of range
in following simplified test case
Mercurial 1.6.4 - on more Linux distros

$ hg init
$ echo a >a
$ hg add
adding a
$ hg ci -m a
$ hg remove a
$ hg ci -m remove
$ hg revert -r 0 a
$ hg up -r 0
** unknown exception encountered, details follow
** report bug details to http://mercurial.selenic.com/bts/
** or mercurial at selenic.com
** Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40) [GCC 4.3.2]
** Mercurial Distributed SCM (version 1.6.4)
** Extensions loaded: children, churn, convert, fetch, gpg, highlight,
patchbomb, purge, transplant, graphlog, record, bookmarks, hggit, mq, rebase
Traceback (most recent call last):
  File "/usr/bin/hg", line 27, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 16, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 34, in
dispatch
    return _runcatch(u, args)
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 54, in
_runcatch
    return _dispatch(ui, args)
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 494,
in _dispatch
    cmdpats, cmdoptions)
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 355,
in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 545,
in _runcommand
    return checkargs()
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 499,
in checkargs
    return cmdfunc()
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 492,
in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File "/usr/lib/python2.5/site-packages/mercurial/util.py", line 420, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/mercurial/extensions.py", line 129,
in wrap
    util.checksignature(origfn), *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/mercurial/util.py", line 420, in check
    return func(*args, **kwargs)
  File "/home/hynekadm/lib/python2.5/hgext/mq.py", line 2814, in mqcommand
    return orig(ui, repo, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/mercurial/util.py", line 420, in check
    return func(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/mercurial/commands.py", line 3855,
in update
    return hg.update(repo, rev)
  File "/usr/lib/python2.5/site-packages/mercurial/hg.py", line 381, in update
    stats = mergemod.update(repo, node, False, False, None)
  File "/usr/lib/python2.5/site-packages/mercurial/merge.py", line 521, in
update
    stats = applyupdates(repo, action, wc, p2, pa)
  File "/usr/lib/python2.5/site-packages/mercurial/merge.py", line 274, in
applyupdates
    fca = fcl.parents()[0]
IndexError: list index out of range

----------
messages: 13846
nosy: hynekcer
priority: bug
status: unread
title: exception IndexError in update after revert

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2422>
____________________________________________________


More information about the Mercurial-devel mailing list