Today we’re announcing four, albeit minor, new features active immediately. Actually, a few of them have been active for a while, but weren’t tested enough to be announced.
Close tickets via commit message
Save a step in your workflow and close tickets when you actually close them, when you commit! You can now close tickets by saying, for example, “closed #49” or “closes ticket:103” anywhere in your commit message. Here’s the list of “close” keyword variants that can be used before either form of ticket Trac link:
This will also automatically reference the changeset and ticket with each other via wiki links. You can also just get the referencing without closing the ticket by using these keywords before a ticket link:
Put up a splash page for unauthorized users
For projects that don’t allow anonymous WIKI_VIEW, but want to show something to anonymous users besides a Forbidden error, you can now create a wiki page called WikiSplash that will be displayed in place of the Forbidden message.
You can use this to tell the unauthorized users what they’re missing, or to tell them how they can get permission to the project. It could also be used to simply redirect users to the login page for convenience (see below).
Redirect users from anything to anything
Using the macro is as simple as this:
The format is always a qualified Trac link in the type-colon-id format. The one exception is our login redirect that can be used in combination with the WikiSplash page. That would look like this:
Display a table of contents
We’ve also installed the TocMacro, which you can use to make a TracGuide-style table of contents menu for your pages. It uses the page’s own heading structure, so there’s no configuration. Just throw this on your wiki page:
If you want to display more than what’s on the current page, you can pass it a list of other wiki pages to build a menu from.
[[TOC(WikiStart, AnotherWikiPage, ProjectGuide)]]
There’s a few more configuration options available that you can read about here.
More to come, including export
The next thing on the list is project export, which will get you a dump of your repository and a hotcopy of your Trac environment. I know this has got to be the most requested feature, and I’m sorry it’s taken so long. You should see a link for it in the Admin in about a week. : )