Build your planned code changes, checked as you go.
Recent revisions are kept. Restoring one creates a new revision.