Add files to code reviews when other users need to review them. The following information explains how to perform reviews from the Source Tree window. You can also add files to reviews when performing the following actions.
Keep the following in mind:
1. Select a file and choose Activities > Code Review > Add to Code Review. You can also drag files to code reviews from the Source Tree window to quickly add the current version to a review.
The Add to Code Review dialog box opens.
2. Select the Code review to add the files to.
3. Click OK.
The file is added to the review.
Note: After all files needing review are added, start the review to notify the reviewers. See Starting code reviews.
Other ways to add files to code reviews
You can add new files you are adding to Surround SCM to code reviews. When the files are opened in a review, the entire file contents are displayed. See Adding files to Surround SCM.
1. Expand the Code review options in the Add Files dialog box.
2. Select Add to code review and select the review to add the file to.
You can add updated files to code reviews when you check in changes. When the files are opened in a review, the differences between file versions are displayed. See Checking in updated files.
1. Expand the Code review options in the Check In Files dialog box.
2. Select Add new version to code review and select the review to add the file to.
You can add all files in a changelist or individual files from a committed changelist to code reviews. When the files are opened in a review, the differences between file versions are displayed. See Managing changelists.
1. Select a changelist or file in a committed changelist in the Changelists dialog box.
2. Click Add to Code Review.
You can add files to code reviews after promoting or rebasing changes between branches. When the files are opened in a review, the differences between file versions are displayed. See Merging Files Between Branches.
1. Select a file in the Promote Status or Rebase Status dialog box and click Add to Review.
The Add to Code Review dialog box opens.
2. Select the Code review to add the files to.
You can add file versions to code reviews when viewing historical file information. When the files are opened in a review, the differences between file versions are displayed. See Viewing file history.
1. Select a file version in the History dialog box.
2. Click a button to add the file version to a review or review the changes.
You can add files to code review when analyzing issue risk to indicate they may need attention. When the files are opened in a review, the entire file contents are displayed. See Analyzing issue risk in files.
1. Select a file in the Analyze Risk dialog box.
2. Click a button to add the file to a review or review the file.
Tip: You can also drag files to code reviews from the Analyze Risk dialog box to quickly add the current version to a review.
You can select related files to add to code reviews by changelist, label, or Helix ALM issue, test case, or requirement. When the files are opened in a review, the differences between file versions are displayed.
1. Choose View > Code Reviews.
The Code Reviews window opens.
2. Select the review to add files to and click Add Files.
The Add Files to Code Review dialog box opens.
3. Select a source type in Select files and versions by list and then select a source to display files from.
4. Select the files to add to the review and click Add to Code Review.
The files are added to the review.