Fix bugs after checking what actually happened.
Recent revisions are kept. Restoring one creates a new revision.