On Tue Dec 02 2014 at 5:51:09 PM RjOllos <[email protected]> wrote: > > On Tuesday, December 2, 2014 4:14:42 PM UTC-8, Kristen wrote: >> >> Hello, >> >> I'm fairly new to Trac and I was wondering if there is a way to display >> the latest svn revision number on the WikiStart page. So, for example, >> if the revision number changes from 354 to 355, then it automatically >> updates the number on the wiki, similar to how the Revision Log updates on >> the Browse Source page. >> >> Thanks for your help! >> >> Kristen >> > It doesn't take much code to write the macro you're looking for, just a > bit of familiarity with the Trac API. > > The LatestRevision macro will display the latest rev from an VCS that is > supported by Trac or it's VCS plugins. The latest rev will be displayed as > a link to the repository's changelog. I tested with Trac 1.0-stable, but it > should work with 0.12 and later. > > Just drop a file in your environment plugins dir with the following > content: >
One more detail: The file should be named LatestRevisionMacro.py -- You received this message because you are subscribed to the Google Groups "Trac Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/trac-users. For more options, visit https://groups.google.com/d/optout.
