Last modified: 2009-01-26 13:51:20 UTC
Currently there is no API equivalent to the UI's 'undo' function. Imitating it is non-trivial since, unlike rollback or simple reversion, the result of an undo is not always identical to a previous revision of the page.
Closing as WONTFIX. Figuring out the new page text is a relatively simple operation on the contents of the revisions involved in the undo. It wouldn't be too hard for a bot to grab the revisions it needs, figure out what the text after undo would be and submit that.
Heh, fair enough. (The further I get with this project, the less I feel I'm interfacing with MediaWiki and the more I feel I'm re-implementing random bits of it. :)
*** Bug 17051 has been marked as a duplicate of this bug. ***
Decided to implement this anyway in the next few days.
Done in r46260