Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#8274 closed defect (duplicate)

TypeError: list indices must be integers

Reported by: rohieb Owned by: Christian Boos
Priority: normal Milestone:
Component: plugin/mercurial Version: 0.11.1
Severity: critical Keywords: list indices, integer, hg
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /browser, Trac issued an internal error.

The error occurs everytime I try to get access to the repository, e.g. when clicking on a changeset in the timeline or browing sources. It is not possible to use the browser at all.

Request parameters:

{'path': '/'}

User Agent was: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.10) Gecko/2009042523 Ubuntu/8.10 (intrepid) Firefox/3.0.10

System Information

Trac 0.11.1
Python 2.5.2 (r252:60911, Jan 4 2009, 22:17:10)
[GCC 4.3.2]
setuptools 0.6c9
SQLite 3.5.9
pysqlite 2.4.1
Genshi 0.5.1
mod_python 3.3.1
Pygments 0.10
Mercurial 1.1.2
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 197, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/trac/versioncontrol/web_ui/browser.py", line 361, in process_request
    'dir': node.isdir and self._render_dir(req, repos, node, rev),
  File "/usr/lib/python2.5/site-packages/trac/versioncontrol/web_ui/browser.py", line 407, in _render_dir
    entries = [entry(n) for n in node.get_entries()]
  File "/var/lib/python-support/python2.5/tracext/hg/backend.py", line 599, in get_entries
    yield self.subnode(entry)
  File "/var/lib/python-support/python2.5/tracext/hg/backend.py", line 573, in subnode
    return MercurialNode(self.repos, p, self.n, self.manifest, self.mflags)
  File "/var/lib/python-support/python2.5/tracext/hg/backend.py", line 528, in __init__
    self._init_path(log, path)
  File "/var/lib/python-support/python2.5/tracext/hg/backend.py", line 548, in _init_path
    log_rev = self.repos.repo.file(file).linkrev(file_n)
  File "/var/lib/python-support/python2.5/mercurial/revlog.py", line 504, in linkrev
    return self.index[rev][4]
TypeError: list indices must be integers

Attachments (0)

Change History (2)

comment:1 by anonymous, 15 years ago

Component: generalplugin/mercurial
Owner: set to Christian Boos

Sorry, component is plugin/mercurial. (I had to add this text, otherwise akismet says the entry is spam :()

comment:2 by Christian Boos, 15 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #7856

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.