Community
Participate
Working Groups
How history graph should look: | o 1 | | o 2 | | o | 3 \ | | o 4 o | 5 | o 6 How JGit plots it: | o 1 | o--. 2 | | o | 3 \ | | o 4 o | 5 | o 6 o.e.jgit.revplot.PlotCommitList#nextFreeLane() method doesn't consider free lane at specific repo timeline (i.e. lane 1 between commits 1 and 3 is not vacant, however when resolving child of the "4" commit this lane is already freed). I already patched this method to take commit time into account when fixing bug 365460, but reverted changes to reduce changes cause by method signature change and to avoid possible computation overhead. It if is an acceptable solution and if eclipse hasn't purged this class' local history, I'll upload the patch.
Could it be that there is no reliable and easy way to assert that commit X will be drawn above commit Y and below commit Z in the history graph in jgit? I just understood that the fix I was talking about will work only in very special cases. It is an interesting issue to fix, but I'm stuck at calculating closest "past" (drawn below) commit with direct childs in the future (dawn above) relative to the commit X.
It seems that bug 377532 could be affected by this issue too. Devs? Anyone? :)
Can you provide a test repo for this? What I did for 373281 was to add grafts to eliminate parts of the graph by running git filter-branch. I also used git-filter branch to remove the conten, leaving only the history.
Created attachment 228538 [details] Test repository
Commit "4" (master) is drawn on the lane of "branch1" as a merge, but it is obviously not.
*** Bug 373281 has been marked as a duplicate of this bug. ***
Please have a look at https://git.eclipse.org/r/11257
*** Bug 382204 has been marked as a duplicate of this bug. ***
*** Bug 398274 has been marked as a duplicate of this bug. ***
*** Bug 417479 has been marked as a duplicate of this bug. ***
If this happens, is it safe to push to remote? I.e. is it "just" kind of a visual problem?
Yes, it was only a visual problem in the history view. (In reply to Eike Stepper from comment #11) > If this happens, is it safe to push to remote? > I.e. is it "just" kind of a visual problem?
merged as a065a06c2aefd0f5c5fc70d3410c3202f4d03268