Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#7981 closed defect (fixed)

TypeError: list indices must be integers

Reported by: rasmusATflajmDOTcom Owned by:
Priority: high Milestone: not applicable
Component: version control/log view Version: 0.11.1
Severity: normal Keywords: mercurial, hg, hgext
Cc: androsis@…, macke@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

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

Viewing a changelog-formatted log fails, but viewing it in HTML is no problem.

Request parameters:

{'format': u'changelog',
 'limit': u'100',
 'mode': u'follow_copy',
 'path': u'/',
 'stop_rev': u'',
 'verbose': u'on'}

User Agent was: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1

System Information

Trac 0.11.1
Python 2.5.2 (r252:60911, Apr 16 2008, 23:58:07)
[GCC 4.2.3 (Debian 4.2.3-3)]
setuptools 0.6c8
SQLite 3.5.9
pysqlite 2.4.1
Genshi 0.5
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/log.py", line 213, in process_request
    for cpath, kind, chg, bpath, brev in changeset.get_changes():
  File "build/bdist.linux-x86_64/egg/tracext/hg/backend.py", line 849, in get_changes
    linkedrev = repo.file(base_path).linkrev(rename_info[1])
  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 (5)

comment:1 by Christian Boos, 16 years ago

Milestone: not applicable
Priority: normalhigh

I can reproduce this. Thanks for the report.

comment:2 by androsis@…, 16 years ago

Cc: androsis@… added

comment:3 by Marcus Lindblom <macke@…>, 16 years ago

Cc: macke@… added

I just got this too.

comment:4 by Christian Boos, 16 years ago

Resolution: fixed
Status: newclosed

Fixed in r7830 and r7831.

comment:5 by Marcus Lindblom <macke@…>, 16 years ago

Works great. Thanks alot! 8-D

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.