Find why your code broke before changing it.
Recent revisions are kept. Restoring one creates a new revision.