This page last changed on Aug 06, 2009 by smaddox.

Once you have set up your Crucible server as an Eclipse task repository, you can add add changesets and patches to a Crucible review without leaving Eclipse.

To add a changeset to a Crucible review,

  1. If you have not already done so, define your Crucible filters as described in the guide to creating a query.
  2. Open the review in an Eclipse editor:
    • Open your Eclipse 'Task List' view: In the Eclipse toolbar, select 'Window', 'Show View', 'Task List'.
    • Open the folder with the name corresponding to the query that you want, i.e. the Crucible filter that you created earlier.
    • Double-click the line showing the review you want, or right-click the line and select 'Open'.
  3. The review details appear in an Eclipse editor, as shown in diagram 1 below. Click the 'Add Changesets' icon in the 'Review Files' section.
  4. The 'Add Changeset' screen appears, showing a list of committed changesets in your repository, as shown in screenshot 2 below. Select one or more changesets from the list on the left. (Hold down the Ctrl key to select more than one changeset at once.)
  5. Click 'Add' to move the selected changeset(s) into the box on the right.
  6. Click the 'Edit' button to map your local repository to the repository on your Crucible server.
  7. Click 'Finish'.

To add a patch to a Crucible review,

  1. Create the patch from the changes you have made to your source file in the Eclipse editor, and copy the patch to your clipboard. Here are some brief instructions, in case you have not done this before:
    • Save the changes you have made to your source file locally. There is no need to commit these changes to your source repository.
    • Right-click on your source file in the Eclipse editor and select 'Team', 'Create Patch'.
    • The 'Create Patch' window appears. Select 'Save to Clipboard'.
    • Click 'Next'.
    • Leave the 'Advanced options' set to the default values. Click 'Finish'.
  2. If you have not already done so, define your Crucible filters as described in the guide to creating a query.
  3. Open the review in an Eclipse editor:
    • Open your Eclipse 'Task List' view: In the Eclipse toolbar, select 'Window', 'Show View', 'Task List'.
    • Open the folder with the name corresponding to the query that you want, i.e. the Crucible filter that you created earlier.
    • Double-click the line showing the review you want, or right-click the line and select 'Open'.
  4. The review details appear in an Eclipse editor, as shown in diagram 1 below. Click the 'Add a Patch' icon in the 'Review Files' section.
  5. The 'Add Patch' window appears, as shown in screenshot 3 below. Your patched change will appear in the box on the page, because you have already copied it to your clipboard. Select 'Include this Patch from the clipboard to the review'.
  6. Select your repository on your Crucible server.
  7. Click 'Finish'.


Diagram 1: Adding changesets and patches to a review


Screenshot 2: Changesets


Screenshot 3: Patch



RELATED TOPICS

Working with Crucible Reviews in Eclipse

Refer to the Crucible documentation for more information about Crucible reviews.


Adding changesets and patches (text/xml)
CrucibleAddChangeset.png (image/png)
CrucibleReviewDetails.jpg (image/jpeg)
Adding changesets and patches (application/octet-stream)
Adding changesets and patches (application/octet-stream)
CrucibleAddPatch.png (image/png)
Document generated by Confluence on Aug 18, 2009 18:06