Trac 0.11 fails to display beginning of history

Bug #488662 reported by Martin von Gagern
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trac-Bzr
Fix Released
Medium
Martin von Gagern

Bug Description

When trying to view the first few revisions of a log, including revision 0, then trac 0.11 will die with the following traceback:

...
  File "/home/mvg/src/up/trac/genshi/trunk/genshi/template/eval.py", line 178, in evaluate
    return eval(self.code, _globals, {'__data__': data})
  File "/home/mvg/src/up/trac/0.11-stable/trac/versioncontrol/templates/revisionlog.html", line 148, in <Expression u'dateinfo(change.date)'>
    <td class="date" py:content="dateinfo(change.date)" />
  File "/home/mvg/src/up/trac/0.11-stable/trac/timeline/web_ui.py", line 236, in dateinfo
    pretty_timedelta(date),
  File "/home/mvg/src/up/trac/0.11-stable/trac/util/datefmt.py", line 73, in pretty_timedelta
    time1 = to_datetime(time1)
  File "/home/mvg/src/up/trac/0.11-stable/trac/util/datefmt.py", line 53, in to_datetime
    type(t))
TypeError: expecting datetime, int, long, float, or None; got <class 'genshi.template.eval.Undefined'>

The cause seems to be that current trunk only knows about revision "null:" but not about revisions "branchname,null:". So there is some problem with the changeset for the null revision. WIll attach a branch fixing this.

Related branches

Changed in trac-bzr:
assignee: nobody → Martin von Gagern (gagern)
importance: Undecided → Medium
milestone: none → 0.3.0
status: New → In Progress
Changed in trac-bzr:
status: In Progress → Fix Committed
Changed in trac-bzr:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.