Fix broken code with a test that proves the bug.
Recent revisions are kept. Restoring one creates a new revision.