Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#8568 closed defect (duplicate)

TypeError: list indices must be integers

Reported by: vincentcr Owned by:
Priority: normal Milestone:
Component: plugin/mercurial Version: 0.11.5
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a GET operation on /changeset/97:758d256ccb65, Trac issued an internal error.

clicked on a changeset link in the timeline. found some similar bugs but they are for an earlier version, it's supposed to fixed in 0.11.5.

Request parameters:

{'new': u'97:758d256ccb65'}

User Agent was: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.13) Gecko/2009073022 Firefox/3.0.13

System Information

Trac 0.11.5
Python 2.4.3 (#1, Jan 21 2009, 01:11:33)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)]
setuptools 0.6c8
psycopg2 2.0.6
Genshi 0.6dev-r928
mod_python 3.2.8
Pygments 1.0
Mercurial 1.1.2
jQuery: 1.2.6

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Trac-0.11.5-py2.4.egg/trac/web/main.py", line 444, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.5-py2.4.egg/trac/web/main.py", line 205, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.5-py2.4.egg/trac/versioncontrol/web_ui/changeset.py", line 325, in process_request
    self._render_html(req, repos, chgset, restricted, xhr, data)
  File "/usr/lib/python2.4/site-packages/Trac-0.11.5-py2.4.egg/trac/versioncontrol/web_ui/changeset.py", line 549, in _render_html
    for old_node, new_node, kind, change in get_changes():
  File "/usr/lib/python2.4/site-packages/Trac-0.11.5-py2.4.egg/trac/versioncontrol/web_ui/changeset.py", line 366, in get_changes
    for npath, kind, change, opath, orev in chgset.get_changes():
  File "build/bdist.linux-x86_64/egg/tracext/hg/backend.py", line 771, in get_changes
  File "/usr/lib64/python2.4/site-packages/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 Christian Boos, 15 years ago

Component: generalplugin/mercurial
Resolution: duplicate
Status: newclosed

Duplicate of #7981. Please upgrade to the latest version of the plugin (Mercurial 1.1.2 is not that recent either - 1.3.1 is current).

comment:2 by Christian Boos, 15 years ago

Actually it's not exactly the same backtrace as in #7981 or in #8274, so don't hesitate to reopen if you still have the problem with the latest version of the TracMercurial plugin (source:sandbox/mercurial-plugin-0.11 branch).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.