[issue1354] IndexError: list index out of range in hg verify

Georg-W Koltermann mercurial-bugs at selenic.com
Mon Oct 20 14:55:55 CDT 2008


New submission from Georg-W Koltermann <gwk.rko at gmail.com>:

I had a forced power down after my laptop display had gone wild.  After reboot
my repo was no longer in a sane state:

hunter[20]$ hg verify
checking changesets
checking manifests
 ?: bad link (1151) at manifest revision 1151
crosschecking files in changesets and manifests
checking files
 build.properties.template@?: rev 7 point to nonexistent changeset 1151
** 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.2)
Traceback (most recent call last):
  File "/usr/bin/hg", line 20, in <module>
    mercurial.dispatch.run()
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 20, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 29, in
dispatch
    return _runcatch(u, args)
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 45, in
_runcatch
    return _dispatch(ui, args)
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 364, in
_dispatch
    ret = _runcommand(ui, options, cmd, d)
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 417, in
_runcommand
    return checkargs()
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 373, in
checkargs
    return cmdfunc()
  File "/usr/lib/python2.5/site-packages/mercurial/dispatch.py", line 356, in
<lambda>
    d = lambda: func(ui, repo, *args, **cmdoptions)
  File "/usr/lib/python2.5/site-packages/mercurial/commands.py", line 2825, in
verify
    return hg.verify(repo)
  File "/usr/lib/python2.5/site-packages/mercurial/hg.py", line 312, in verify
    return _verify.verify(repo)
  File "/usr/lib/python2.5/site-packages/mercurial/verify.py", line 15, in verify
    return _verify(repo)
  File "/usr/lib/python2.5/site-packages/mercurial/verify.py", line 204, in _verify
    warn(_(" (expected %s)") % filelinkrevs[f][0])
IndexError: list index out of range


There is nothing to be fixed, the repo is inconsistent due to hardware
error, but I thought maybe the IndexError could be improved.

----------
messages: 7600
nosy: gwk
priority: bug
status: unread
title: IndexError: list index out of range in hg verify

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



More information about the Mercurial-devel mailing list