Fix your bug at its source, then check it works.
Recent revisions are kept. Restoring one creates a new revision.