Patch #42762
openImprove Git/Mercurial revision graph on the repository page
0%
Description
There are several issues with the revision graph on the repository page:
1. When multiple branches point to the same set of commits, the revision graph canvas unnecessarily expands in width.
2. If branch "A" points to an older commit and branch "B" points to a newer commit, the newer section of the revision graph shifts to the right.
3. Orphan commits on the page (for example, when the head was on a previous page) are always shown in the first column.
4. The curves connecting commits on different branches make it hard to identify which commits are connected, especially when several commits exist between the connected ones on the branches (#10954).
This patch series resolves these issues by modifying commit indexing and the curves on the graph:
- Heads are no longer indexed if the referenced commit has already been visited, addressing issue 1.
- Indexing always starts with the latest commit on the page, followed by the heads present on the page, and finally the orphan commits on the page, fixing issues 2 and 3.
- The new curves connect from the left or right side to commits that already have vertical connections, and from the top or bottom to the last or first commit on a branch, respectively.
Parent commit for patch series - 41d1057 from GitHub mirror.
Files
No data to display