Improve your code without a sweeping rewrite.
Recent revisions are kept. Restoring one creates a new revision.