Compare view

Note

Helix TeamHub supports compare view for Mercurial, Subversion, Git, and Helix Git repositories.

Helix TeamHub lets you compare two revisions of a branch. By default, TeamHub compares a revision to the default base branch. If a difference between revisions is significant, TeamHub displays the following message to indicate that code changes are hidden: This diff is too large to display and has been truncated. You may view the entire diff locally.

TeamHub supports syntax highlighting for a large number of languages. For a list of supported languages, see Syntax highlighting support.

To compare two revisions:

  1. Select the revision that you want to compare and click the Compare to another revision button, as shown in the following figure.

    Compare to another revision

  2. If you prefer to compare to a base other than the default base branch, select a different base from the compare list.

  3. Click the plus icon next to a file name to expand the changes, or click Expand all at the top of the list to expand all changes at once.

    Note

    This operation may be slow for larger changesets.

    By default:

    • Inline view shows diffs inline. If you prefer to view changes side by side, click Side by side above the list.

      Side by side comparison view
    • Whitespace changes are displayed. To hide whitespace changes, switch on Ignore whitespace from the gear icon above the list.
    • The number of spaces used to represent a tab can be set between 1 and 8. To change the number of spaces used, set Tab-size from the gear icon above the list (not available for Microsoft Internet Explorer).

Commits

In addition to viewing raw changes between revisions on the Changes tab, you can see commit difference on the Commits tab.

Commits comparison view