| Summary: | History View: Graph is not rendered correctly | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Jens Baumgart <jens.baumgart> | ||||||
| Component: | UI | Assignee: | Project Inbox <egit.ui-inbox> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | angvoz.dev, christian.halstrick, dmgloss, ingmar.nebel, robin | ||||||
| Version: | 0.11 | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Jens Baumgart
Created attachment 187938 [details]
Commit graph
Created attachment 196885 [details]
Commit graph 2
The attached picture shows another case where the graph is wrong. The bottom commit on the red line isn't the parent of the commit at the top.
What's interesting is that the bottom commit has a short yellow line. And if one follows the red line (which is interrupted many times by "yellow commits"), one can find the real parent. So the problem seems to be that the lane is shared when it should be two separate lanes.
Problem originates from org.eclipse.jgit.revplot.PlotCommitList.enter(int, PlotCommit<L>). The "single child" method's branch doesn't check if free lane is in one of the blocked positions as "multi child" branch does. Fix is trivial and involves copy-pasting. I'm sure jgit committers will fix this issue faster without patch contributions :) P.S. Looks like it is JGit issue. Great info Vadim. I'll try that out. A fix in jgit is proposed here: http://egit.eclipse.org/r/#change,4719 . I currently don't have a repo which has this rendering problem. I ask those who see the rendering problem to try it out. Does it solve your problem? (In reply to comment #5) > A fix in jgit is proposed here: http://egit.eclipse.org/r/#change,4719 . I > currently don't have a repo which has this rendering problem. I ask those who > see the rendering problem to try it out. Does it solve your problem? Solves for me. I think this problem is solved with http://egit.eclipse.org/r/#change,4719 . Let's close it. Thanks Vadim! |