Modify

Opened 9 years ago

Closed 9 years ago

#103 closed defect (fixed)

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

Reported by: jparks@… 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 jparks@… 9 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 9 years ago by ttressieres

  • Status changed from new to assigned

comment:2 Changed 9 years ago by ttressieres

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

Changed 9 years ago by jparks@…

comment:3 Changed 9 years ago by jparks@…

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

comment:4 Changed 9 years ago by ttressieres

  • Resolution set to fixed
  • Status changed from assigned to closed

fixed in [326]

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from ttressieres. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.