]> source.dussan.org Git - jgit.git/commit
Fix PlotCommit for commits with duplicate parents 92/6592/3
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 5 Aug 2012 10:50:06 +0000 (12:50 +0200)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 5 Aug 2012 10:50:06 +0000 (12:50 +0200)
commitb2f911bb69c9ac1b644809f98b6e5a36581e9ad8
treeb00d2b4aa24befc592296079d8d0dcd033038765
parentc0b4b79296966f53d3dd20913860942f9476dd20
Fix PlotCommit for commits with duplicate parents

JGit allows to create commits which have duplicate parents: e.g. a
commit X has first parent Y and second parent Y. Such commits are not
handled correctly by PlotCommit leading to wrong display of the history
in EGit. In such cases there is a never ending passing line drawn beside
all commits younger than the commit with duplicate parents. This commit
fixes this by explicitly checking for duplicate parents.

In a different commit we should fix JGit not to create commits with
duplicate parents. I think native git also doesn't allow such commits,
although history display in native git (gitk, git log --graph) is not
damaged by such commits.

Change-Id: Ie3019ef613a507023958bea27b1badc3b8950279
org.eclipse.jgit.test/tst/org/eclipse/jgit/revplot/PlotCommitListTest.java
org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommit.java