Opened 9 years ago

Closed 9 years ago

#4494 closed defect (duplicate)

[Patch] Throws an exception when used with the GitPlugin

Reported by: me+trac@… Owned by: Alec Thomas
Priority: normal Component: ChangeLogPlugin
Severity: normal Keywords: git
Cc: Trac Release: 0.11


The exception is:

2009-01-21 19:16:18,632 Trac[formatter] ERROR: Macro ChangeLog(/, 5) failed
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 467, in _macro_formatter
    return macro.process(args, in_paragraph=True)
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 178, in process
    text = self.processor(text)
  File "/usr/lib/python2.5/site-packages/trac/wiki/", line 165, in _macro_processor
  File "/home/svn/donator.trac/plugins/", line 50, in expand_macro
    out.write(wiki_to_html("'''[%i] by %s on %s'''\n\n%s" % (nrev,, format_datetime(, change.message),
TypeError: int argument required

Since nrev is not an int in Git, the %i conversion fails. Patch attached.

Attachments (1)

4494.diff (674 bytes) - added by me+trac@… 9 years ago.

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by me+trac@…

Attachment: 4494.diff added

comment:1 Changed 9 years ago by me+trac@…

Resolution: duplicate
Status: newclosed

Duplicate of 4034.

Modify Ticket

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