Cover every line of your code with pytest tests.
Recent revisions are kept. Restoring one creates a new revision.