[issue368] tags problem with mq extension loaded while running convert-repo

Thomas Arendsen Hein mercurial-bugs at selenic.com
Sun Sep 10 09:22:51 UTC 2006


New submission from Thomas Arendsen Hein <thomas at intevation.de>:

running "hg tip" with mq extension enabled sometimes yields the following
traceback if the repo is concurrently being written to by convert-repo:

changeset:   5434:60f04fa4db6d
** unknown exception encountered, details follow
** report bug details to http://www.selenic.com/mercurial/bts
** or mercurial at selenic.com
** Mercurial Distributed SCM (version ad6aecaf4eed)
Traceback (most recent call last):
  File "/home/thomas/hg/repos/tah/hg", line 12, in ?
    commands.run()
  File "/home/thomas/hg/repos/tah/mercurial/commands.py", line 3206, in run
    sys.exit(dispatch(sys.argv[1:]))
  File "/home/thomas/hg/repos/tah/mercurial/commands.py", line 3418, in dispatch
    return d()
  File "/home/thomas/hg/repos/tah/mercurial/commands.py", line 3372, in <lambda>
    d = lambda: func(u, repo, *args, **cmdoptions)
  File "/home/thomas/hg/repos/tah/mercurial/commands.py", line 2648, in tip
    show_changeset(ui, repo, opts).show(changenode=n, brinfo=br)
  File "/home/thomas/hg/repos/tah/mercurial/commands.py", line 416, in show
    for tag in self.repo.nodetags(changenode):
  File "/home/thomas/hg/repos/tah/mercurial/localrepo.py", line 286, in nodetags
    for t, n in self.tags().items():
  File "/home/thomas/hg/repos/tah/hgext/mq.py", line 1872, in tags
    tagscache = super(mqrepo, self).tags()
  File "/home/thomas/hg/repos/tah/mercurial/localrepo.py", line 250, in tags
    fn, ff = self.manifest.find(change[0], '.hgtags')
  File "/home/thomas/hg/repos/tah/mercurial/manifest.py", line 107, in find
    text = self.revision(node)
  File "/home/thomas/hg/repos/tah/mercurial/revlog.py", line 848, in revision
    base = self.base(rev)
  File "/home/thomas/hg/repos/tah/mercurial/revlog.py", line 533, in base
    def base(self, rev): return (rev < 0) and rev or self.index[rev][-5]
  File "/home/thomas/hg/repos/tah/mercurial/revlog.py", line 232, in __getitem__
    ret = self.p.index[pos] or self.load(pos)
  File "/home/thomas/hg/repos/tah/mercurial/revlog.py", line 229, in load
    self.p.loadindex(pos)
  File "/home/thomas/hg/repos/tah/mercurial/revlog.py", line 216, in loadindex
    self.loadblock(blockstart, blocksize)
  File "/home/thomas/hg/repos/tah/mercurial/revlog.py", line 147, in loadblock
    if self.index[i + x] == None:
IndexError: list index out of range

----------
messages: 1918
nosy: ThomasAH
priority: bug
status: unread
title: tags problem with mq extension loaded while running convert-repo
topic: mq

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




More information about the Mercurial mailing list