Keep code changes small and releases versioned.
Recent revisions are kept. Restoring one creates a new revision.