Search code examples
wikitrac

Revert wiki page in Trac


How do you revert to an earlier version of a wiki page in Trac?


Solution

  • I know it sounds complicated, but here's one way:

    • Click on "History" at the top-left of the page.
    • Click on the version you want to revert to. This will display the page at that version.
    • At the bottom of the page, under "Download in other formats", click "Plain Text". This will download the source text for the desired version.
    • Edit the page, delete the whole content and paste the source that you downloaded.

    Admittedly, this could be made quite a bit simpler. Feel free to file a ticket on the Trac site to request this enhancement (a quick search didn't yield anything).

    Of course, if the version you want to revert to is the previous one, you could also just delete the current version. You will need WIKI_DELETE permission for that.