Once a review has been started you can add a changelist to the review. It can be useful to add changelists to an existing review. For example, if follow up changes are made to files in a review or if you need to group a number of changelists under a single review.
The Add Change button in the review heading is used to add a changelist to an existing review. The button is not visible if the review is in a state that is protected from change by the review workflow rules. For details of the On update of a review in an end state rule, see Workflow rules.
The options available in the Add Change dropdown menu depend on whether the review is pre-commit or post-commit:
If you replace a pre-commit review with a committed changelist, the new version of the review will be a post-commit review.
If you replace a post-commit review with a pending changelist, the new version of the review will be a pre-commit review.
When the content of a review is changed, Swarm checks to see which branches are in the new revision of the review:
The Append Pending Changelist option is used to add a pending changelist to a pre-commit review.
Example:
Committing a review with Swarm (recommended): Swarm automatically commits the files in the approved revision of the review.
Committing a review outside of Swarm:
Before you commit the review:
Workflow technology preview feature disabled (default):
Swarm can be configured to automatically check that the files being committed match the files in the approved revision of the review, see the strict trigger option.
Workflow technology preview feature enabled:
Swarm can be configured to automatically check that the files being committed match the files in the approved revision of the review by using the On commit with a review workflow rule. For information about the On commit with a review rule, see Workflow rules.
To append a changelist to a review:
The changelist must not be part of another review, if it is Swarm will reject it.
The Replace with a Pending Changelist option is used to replace the files in a review with the files in a pending changelist.
If you replace a post-commit review with a pending changelist, the new version of the review will be a pre-commit review.
Example:
When you replace a review with a changelist, the base versions of the files in the new revision of the review are the base versions of the files in the replacement changelist.
To replace the files in a review with the files in a changelist:
The changelist must not be part of another review, if it is Swarm will reject it.
The Replace with a Committed Changelist option is used to replace the files in a review with the files in a committed changelist.
If you replace a pre-commit review with a committed changelist, the new version of the review will be a post-commit review.
Example:
When you replace a review with a changelist, the base versions of the files in the new revision of the review are the base versions of the files in the replacement changelist.
To replace the files in a review with the files in a changelist:
The changelist must not be part of another review, if it is Swarm will reject it.