Catch invalid states in your code at compile time.
Recent revisions are kept. Restoring one creates a new revision.