Comparing Streams

Stream Compare

To compare a stream with another stream right-click the stream and select 'Compare With'. This will launch the Stream Comparer with the stream contents on the left. Initially everything will appear as different until you select another stream.

Figure 4.11. Stream Comparer Launched

Stream Comparer Launched

Select the stream to compare against by pressing the '...' browse button in the top right. This will launch the Stream Selector to select the stream you want to compare.

Figure 4.12. Stream Selector

Stream Selector

Select the stream you want to compare against. You can choose to 'Use the Latest Changeset' which will compare against the latest files for that stream or you can specify a changeset. One use for this is if you want to compare the same stream between different changesets.

After pressing OK the Stream Comparer will show the differences between the streams. Files and folder which have been added will appear as green. Files which have been changed will appear as blue. Folders which contain a file which has been changed will also appear as blue.

Figure 4.13. Stream Comparer

Stream Comparer

You can hide the files which are identical and therefore only show the differences with the 'Show/Hide Matching Items' toolbar button.

The 'Show/Hide Folders' toolbar button allows you to display the file differences as a flat view. Here the files are shown as a list of file paths rather than a tree where each folder needs to be expanded to show the files beneath.

Figure 4.14. Stream Comparer - Flat View

Stream Comparer - Flat View

Press the Options toolbar button to open the Comparer Options. By default all files are shown but you can choose to not show some files. For example if you uncheck 'Show Matching Items' then only differences will be displayed.

Figure 4.15. Comparer Options

Comparer Options