Compare view
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:
-
Select the revision that you want to compare and click the Compare to another revision button, as shown in the following figure.
-
If you prefer to compare to a base other than the default base branch, select a different base from the compare list.
-
Click the plus (+) next to a file name to expand the changes, or click Expand all files at the top of the list to expand all changes at once.
NoteThis operation may be slow for larger changesets.
By default:
-
Whitespace changes are displayed.
-
To hide whitespace changes, switch on Ignore whitespace from the gear icon above the list.
-
To show whitespace changes, switch off Ignore whitespace from the gear icon above the list.
-
-
The number of spaces used to represent a tab is 8. To change the number of spaces used, set Tab-size between 1 and 8 from the gear icon above the list (not available for Microsoft Internet Explorer).
- Changes are displayed inline:
To view changes next to each other, select Side by side.
To view changes inline, select Inline.
-
User comments are displayed in the code.
-
Comments in a single file:
-
To hide comments for a file, select Hide discussion on the file name banner .
-
To show the comments for a file, select Show discussion on the file name banner.
-
-
Comments for all files:
-
To hide comments for all of the files, select Hide all discussions above the list.
-
To show comments for all of the files, select Show all discussions above the list.
-
-
-
Only the three lines above and below each change are displayed.
-
Select Expand all code on the file name banner to show all of the code up to a maximum of 10,000 lines. If the file contains more lines, only the first 10,000 are displayed and TeamHub displays a message to say the file content has been truncated.
-
Select Collapse all code on the file name banner to return to the default view for the file.
-
Commits
In addition to viewing raw changes between revisions on the Changes tab, you can see commit difference on the Commits tab.