Opened 8 years ago

Closed 8 years ago

# Add revision info to macro

Reported by: Owned by: Ryan J Ollos Ryan J Ollos normal WikiTicketCalendarMacro normal 0.11

### Description

Trac 0.12 allows revision info for plugins and macros to be displayed on the About page. For single file macros, revision info is made available by including the following two lines below the section of import statements:

revison="$Rev$"
url="$URL$"


and applying the following svn:keywords properties:

svn propset svn:keywords "LastChangedRevision HeadURL" <filename>.py


For example, see changelogmacro/0.11/ChangeLogMacro.py@7473:9-10.

### comment:1 Changed 8 years ago by Ryan J Ollos

Owner: changed from Mike Comb to Ryan J Ollos

Reassigning ticket after changing maintainers.

### comment:2 follow-up:  3 Changed 8 years ago by Steffen Hoffmann

Resolution: → fixed new → closed

(In [8062]) WikiTicketCalendarMacro: Add revision, URL info and corresponding svn properties, closes #6579.

This change was done in SVN r7524 before, but only propagated to 0.10 branch, where it is pointless anyway, so will be removed again.

### comment:3 in reply to:  2 Changed 8 years ago by Ryan J Ollos

This change was done in SVN r7524 before, but only propagated to 0.10 branch, where it is pointless anyway, so will be removed again.

The previous change was actually only added to the 0.12 version and I had intended to completely remove any 0.10 versions, but I think that the version I added in [7524] may not have been yet functional on 0.12.

### Modify Ticket

Change Properties