Shape your data before writing the logic.
Recent revisions are kept. Restoring one creates a new revision.