Check SonarQube code quality before you merge.
Recent revisions are kept. Restoring one creates a new revision.