Keep your web app code clear and maintainable.
Recent revisions are kept. Restoring one creates a new revision.