Viewing the commit graph for a repository
Viewing the commit graph for a repository
To view the commit graph for a repository:
- Navigate to the desired repository, as described on Browsing through a repository.
- Click the Commit Graph tab.
Selecting, or hovering on, a changeset (regardless of highlight) will display the following in the row for the changeset:
- an icon. Click this icon to see details for the changeset.
- a cog icon with a menu that allows you to see the changeset ID, view the full changeset, view the changeset in the activity stream, or to create a review for the changeset.
- Branch "swimlanes"
- Changeset list
- Highlight selector
- Changeset shown on its branch
- Changeset/Tag search
- Branch "swimlane" selector
- Link to the URL for the commit graph
- Changeset showing:
- date of commit
- user avatar of committer
- commit message (including Jira issue key, if mentioned)
Highlighting the lineage of a changeset
Choose Highlight > Lineage to show the ancestor and descendant changesets for a selected changeset.
Action | Behavior |
---|---|
Click on a changeset in the changeset list | Highlights where a changeset comes from and where it propagates to, i.e. its ancestors and descendants. |
Hover over a changeset in a swimlane | Displays the changeset number and all the branches that the changeset is referenced in. This will include branches that you may not have swimlanes displayed for. |
Highlighting Jira issues
Choose Highlight > Jira issues to highlight all the changesets that have a Jira issue key in the commit message.
This highlight type is only available if you have integrated Fisheye with Jira and linked your repository to a Jira project.
Action | Behavior |
---|---|
Click on a changeset in the changeset list | Highlights all other changesets that have the same Jira issue key in the commit message. |
Hover over a changeset in a swimlane | Displays all branches that the changeset is referenced in, and all referenced Jira issues. |
Highlighting reviewed changesets
Choose Highlight > Reviewed changesets to highlight the changesets that have been reviewed (i.e. included in a Crucible review):
- Red: unreviewed, i.e. the changeset is associated with a review in the 'Dead' or 'Rejected' state, or no review is associated.
- Yellow: under review, i.e. the changeset is associated with a review not in the 'Dead', 'Rejected' or 'Closed' state.
- Green: reviewed, i.e. the changeset is associated with a review in 'Closed' state.
This highlight type is only available if you are using Fisheye with Crucible.
Action | Behavior |
---|---|
Click on a changeset in the changeset list | Highlights the changesets that are part of the same review as the selected changeset. |
Hover over a changeset in a swimlane | Displays all branches that the changeset is referenced in, and the Crucible review key. |
Highlighting commits by an author
Choose Highlight > Author to highlight all the changesets submitted by a particular author.
Action | Behavior |
---|---|
Click on a changeset in the changeset list | Highlights the changesets that were submitted by the same author. |
Hover over a changeset in a swimlane | Displays the changeset number and all the branches that the changeset is referenced in. |
Highlighting search results
Choose Highlight > Search to highlight all the changesets where the commit message contains the search term.
Action | Behavior |
---|---|
Click on a changeset in the changeset list | Highlights the changesets that match the search term. |
Hover over a changeset in a swimlane | Displays the changeset number and all the branches that the changeset is referenced in. |
Viewing changesets across all branches
The 'All Branches' mode allows you to view commit activity across all branches of a repository. In this mode, the swimlane headers are not displayed. However, you can hover over any changeset to display information about the changeset, as described in the 'Highlighting Information in the Commit Graph' section above.
To see all the repository's branches in the commit graph:
- Click Select branches... when viewing the commit graph.
- In the 'Select Branches' dialog, click Switch to all branches mode.
Reordering swimlanes for Git repositories
Reordering swimlanes is useful if you just want to show branches in a certain order. However, ordering swimlanes is vital for Git repositories, as it is the only way to determine which branch a commit is from.
When you view the commit graph for a Git repository, Fisheye works from the leftmost swimlane to the right and, for each swimlane, checks if the commit is in that branch:
- If the commit is in the branch, a dot is shown representing the commit.
- If the commit is not in the branch, the dot for the commit is moved to the next column on the right.
For example, if the 'master' swimlane is to the left of another swimlane, e.g. 'fisheye-2.6' branch, there will be no changesets shown in the 'fisheye-2.6' swimlane, as all the commits will be picked up in the 'master' swimlane. However, if you move the 'fisheye-2.6' swimlane to the left of the 'master' swimlane, it will pick up all of the Fisheye 2.6 commits.
For more information, read this Knowledge Base article: Ordering of Branches Important When Visualizing Git Changeset