Make fallback code safe to run more than once.
Recent revisions are kept. Restoring one creates a new revision.