Doc downloads (PDF, HTML & XML)
[Crucible Knowledge Base]
This page explains how to add content, such as files and changesets, to a Crucible review. The procedure depends on whether you are setting up a post-commit or pre-commit review:
Note that Crucible supports 'iterative' reviews – for both post-commit and pre-commit reviews you can update the review with new versions of files, and changesets, created after the review was started.
On this page:
To add content to a review:
In the 'Add Content to Review' dialog, click an option for how you wish to add content to the review, and then follow the instructions in the relevant section below:
Post-commit reviews | |
---|---|
Browse Changesets | Allows you to choose changesets from a Source Code Management (SCM) repository. See Selecting changesets for review below. |
Explore Repositories | Allows you to browse for files in a SCM repository. This option only appears when FishEye is installed. See Selecting repository files for review below. |
Search for Files | Allows you to search a SCM repository for files or changesets. This option only appears when FishEye is installed. See Searching for files to review below. |
Pre-commit reviews | |
Pre-commit | Allows you to upload patch files to a review. See Adding patch files to a pre-commit review below. |
All reviews | |
Attachments | Allows you to upload any file to a review, including binary files and files outside of a SCM repository. See Adding attachments to a review below. |
Click Browse Changesets in the 'Add Content to Review' dialog to add SCM changesets to your review.
By default, Crucible presents a list of the author's changesets in reverse chronological order. You can see other changesets by changing the options at the top of the dialog:
Repository | A list of the repositories that contain the files that can be reviewed. If the repository you require is not in the list then it has not been added to FishEye. Please contact your Crucible/FishEye administrator. |
Author | A list of all the authors who have made changes within the repository. When creating a review, this will default if possible to the username of the user authoring this review and will therefore show their changesets. |
Branch | This will only show files and recent changes on that branch from the repository set above. |
Commit message | Filter for specific commit messages. |
Add to Review as | Choose the form of the review. See Choosing the way files are added to the review below. |
Scroll to changeset | Allows you to jump to a particular change set by entering its title and pressing Enter. |
Select the checkbox next to a changeset ID to add the entire changeset. Note that:
Click Explore Repositories on the 'Add Content to Review' dialog to browse the SCM repositories for files to add to your review:
Note that:
Click Search for Files on the 'Add Content to Review' dialog to search for files to add to your review.
Search is only available when using FishEye with Crucible.
Adjust the search filters to find the files you need. If the simple filters are not enough, consider using EyeQL queries.
Read more about searching your repositories in the FishEye documentation.
Click Pre-commit on the 'Add Content to Review' dialog to add previously created patch files to a pre-commit review.
Choose an upload method:
Select file from the file system | Charset – click the edit icon () to choose the character set being used. UTF-8 is the default. |
Choose File – click to to browse for the file that you want to add to the review. | |
Paste text from clipboard | Patch text — paste your copied text in this text area. |
For more information see Creating patch files for pre-commit reviews.
A short-coming of patches for code review is the reduced context around code changes because the patch does not include all lines of code from the file. Crucible 'patch anchoring' overcomes this by searching for the relevant file content in the connected repositories, and automatically anchoring the patch to the trunk or the branch with the most recent commit activity. Crucible can then seamlessly display more context, as required.
See Using Crucible patch anchoring for more information.
Click Attachments on the 'Add Content to Review' dialog to add attachments to your review.
You can attach additional files to be used in the review, including binary files, images or code files that are not stored in a version control repository.
Charset | Click to choose the character set being used. UTF-8 is the default. |
Choose File | Browse for a file that you want to add to the review. |
Upload | Browse for a file that you want to use as the base of a diff with a previously attached file. |
To add another iteration of a file, upload a different version of the file with the same filename. It will be added as a new version.
Diffs | This is the default. This allows you to add multiple revisions of a file to one review and compare them in-review, in context with the change history. |
Whole Files | Adds the entire file with all content, rather than just a diff with context. |
Diffs to Last Branch Point | This adds files with a diff to the revision each file was last branched. |
Diffs to Last Reviewed Version | This adds files with a diff to the last reviewed changeset. |
Diffs to... (a particular revision) | This allows you to specify the file to show the differences between two specific versions of a file. |
Click Done once you have finished selecting the required files. The files will be added to your review and the review will be displayed.