Modify

Opened 11 years ago

Closed 3 years ago

#10855 closed enhancement (wontfix)

No such changeset exception

Reported by: se@… Owned by: Mikael Relbe
Priority: normal Component: TracTicketChangesetsPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description

We have experienced that the web_ui part of the ticket crashes with No such changeset error and renders nothing else if someone has chosen to rebase or the like (re-commit) on a repository.

We made a small fix for our own installation by adding a try except handler in the expand_macro function in the web_ui.py module.

       if repos:
            try:
                changeset = repos.get_changeset(rev)
                message = changeset.message
                rev = changeset.rev
            except NoSuchChangeset:
                return tag.div(tag.p(_("(No such changeset)"), class_='hint'),
                    class_='commitmessage')

We hope that this (or a similar fix) will find it's way into the code :)

Simon Ellefsen

Attachments (0)

Change History (2)

comment:1 Changed 11 years ago by Mikael Relbe

Status: newassigned

Thank you very much for the proposal. As might be obvious, I have limited time nowadays to maintain the code, but I will definately look into this (when I've found some time).

comment:2 Changed 3 years ago by Ryan J Ollos

Resolution: wontfix
Status: assignedclosed

This plugin is deprecated in Trac 1.2 and later.

Please use TracTicketChangelogPlugin and request any missing features as enhancements for that plugin.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Mikael Relbe.
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.