Modify

Opened 18 years ago

Closed 18 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:

Description

Here is the traceback:

Traceback (most recent call last):

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

dispatch_request(mpr.path_info, mpr, env)

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

dispatcher.dispatch(req)

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

resp = chosen_handler.process_request(req)

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

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

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

previous_rev = repos.previous_rev(chgset.rev)

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

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

Attachments (1)

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

Download all attachments as: .zip

Change History (5)

comment:1 Changed 18 years ago by ttressieres

Status: newassigned

comment:2 Changed 18 years ago by ttressieres

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

Changed 18 years ago by Jason Parks

Attachment: patch.txt added

comment:3 Changed 18 years ago by Jason Parks

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

comment:4 Changed 18 years ago by ttressieres

Resolution: fixed
Status: assignedclosed

fixed in [326]

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain ttressieres.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.