Comparing source control items

Comparing a workspace or stream with another workspace, stream, or snapshot

You can compare all the components in a workspace or stream with all the components in another workspace, stream, or snapshot.

Procedure

  1. In the web client, click Source Control > Repository Workspace. A list of all the workspaces in the repository is displayed.
  2. Select the workspace that you want to compare with another repository workspace, stream, or snapshot.
  3. Based on the compare operation that you want to perform, complete one of the following steps:
    1. To compare the workspace with another workspace or stream, in the upper right, click the Compare with another Repository Workspace or Stream icon Compare with another Repository Workspace or Stream icon.
    2. To compare the workspace with a snapshot, in the upper right, click the Compare with Snapshot icon Compare with Snapshot icon.

Comparing a component with a workspace, stream, or baseline

You can compare a component with a workspace, stream, or baseline.

Procedure

  1. In the web client, click Source Control > Repository Workspace. A list of all the workspaces in the repository is displayed.
  2. Select the workspace that contains the component that you want to compare with a workspace, stream, or baseline.
  3. Based on the compare operation that you want to perform, complete one of the following steps:
    1. To compare the component with the current baseline, in the Actions column, hover over the Compare with icon and click Current Baseline.
      Compare component with baseline
    2. To compare the component with another baseline, in the Actions column, hover over the Compare with icon and click Baseline.
    3. To compare the component with one in another workspace or stream, in the Actions column, hover over the Compare with icon and click Another Repository Workspace or Stream.

Comparing a baseline with another baseline

You can compare a baseline with another baseline to see the differences between them.

Procedure

  1. In the web client, click Source Control > Advanced Search.
  2. On the Advanced search page, under Search For, select Baselines.
  3. Under Search By, in the Component field, enter the name of the component whose baseline you want to compare and click Search. A list of baselines is displayed.
  4. Select the baseline that you want to compare.
  5. In the upper- right, click the Compare icon Compare icon.

Comparing a snapshot with a repository workspace, stream, or another snapshot

You can compare a snapshot with a repository workspace, stream, or another snapshot.

Procedure

  1. In the web client, click Source Control > Repository Workspace. A list of all the workspaces in the repository is displayed.
  2. Select the workspace that owns the snapshot you want to compare.
  3. Click the snapshot tab and select the snapshot that you want to compare.
  4. Based on the compare operation that you want to perform, complete one of the following steps:
    1. To compare a snapshot with a workspace or a stream, in the upper right, click the Compare with another Repository Workspace or Stream icon Compare with another Repository Workspace or Stream icon.
    2. To compare a snapshot with another snapshot, in the upper right, click the Compare with Snapshot icon Compare with Snapshot icon.

Comparing a file between change sets

You can compare a file with the previous version of the same file.

Procedure

  1. In the web client, click Source Control > Streams and open the required stream from the list of streams displayed.
  2. Open the required component and click the History tab.
  3. Expand the latest change set history record and click Show Comparison.
    The changes are displaced in the Text Compare preview.
  4. Click Compare on the Text Compare preview header.

Results

A new page opens that shows the comparison between the two versions of the file by specifying the version details on the header.

Comparing a file with a different version of the same file in another repository workspace, stream, snapshot, or baseline

You can compare a file with a different version of the same file in another repository workspace, stream, snapshot, or baseline.

Procedure

  1. In the web client, click Source Control > Streams and open the required stream from the list of streams displayed.
  2. Open the required component and click the Repository Files tab.
  3. Click the Compare with Compare with icon option from the Actions column of the file you want to compare.
    The Compare with window appears.
  4. Based on the compare operation that you want to perform, complete one of the following steps.
    1. To compare the current file with a file of another baseline, click the Component Baseline button and click Next. Search and select the required baseline and click Finish.
    2. To compare the current file with a file of another repository workspace or stream, click the Component in another repository workspace or stream button and click Next. Search and select the required stream or workspace and click Finish.
    3. To compare the current file with a file of another snapshot, click the Components from a snapshot button and click Next. Search and select the required repository workspace or stream and click Next. Now, search and select the required snapshot and click Finish.

Results

A new page opens that shows the comparison between the current file and the file that is selected for comparison. The file version and the file path details are also shown on the header.