Opened 12 years ago

Closed 12 years ago

#103 closed defect (fixed)

Unable to display a change that is older than what is in the history

Reported by: Jason Parks Owned by: ttressieres
Priority: normal Component: PerforcePlugin
Severity: normal Keywords:
Cc: Trac Release:


Here is the traceback:

Traceback (most recent call last):

File "/usr/lib/python2.4/site-packages/trac/web/", line 206, in handler

dispatch_request(mpr.path_info, mpr, env)

File "/usr/lib/python2.4/site-packages/trac/web/", line 139, in dispatch_request


File "/usr/lib/python2.4/site-packages/trac/web/", line 107, in dispatch

resp = chosen_handler.process_request(req)

File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/", line 87, in process_request

self._render_html(req, repos, chgset, diff_options)

File "build/bdist.linux-i686/egg/p4trac/", line 605, in _render_html File "/usr/lib/python2.4/site-packages/trac/versioncontrol/web_ui/", line 156, in _render_html

previous_rev = repos.previous_rev(chgset.rev)

File "build/bdist.linux-i686/egg/p4trac/", line 213, in previous_rev

ValueError: list.index(x): x not in list

Attachments (1)

patch.txt (2.8 KB) - added by Jason Parks 12 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 years ago by ttressieres

Status: newassigned

comment:2 Changed 12 years ago by ttressieres

i need to refactor the history handling. Maybe i will do it this week.

Changed 12 years ago by Jason Parks

Attachment: patch.txt added

comment:3 Changed 12 years ago by Jason Parks

I've attached a patch that will not crash when going to an older revision.

comment:4 Changed 12 years ago by ttressieres

Resolution: fixed
Status: assignedclosed

fixed in [326]

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain ttressieres.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.