]> source.dussan.org Git - jgit.git/commit
CommitBuilder should check for duplicate parents 06/6606/5
authorChristian Halstrick <christian.halstrick@sap.com>
Wed, 4 Jul 2012 13:08:13 +0000 (15:08 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 13 Mar 2015 01:18:45 +0000 (18:18 -0700)
commit6bc48cdc62287934ce1b7003280b19a5994e7668
tree04b02cb8716b67b9a2db2b447a2ea424f8b71433
parent9041fbc958e3f1d19d3ff1285c41201336d5369f
CommitBuilder should check for duplicate parents

When setting the parents of a commit with setParentIds() or
addParentId() it should be checked that we don't have duplicate parents.
An IllegalArgumentException should be thrown in this case.

Change-Id: I9fa9f31149b7732071b304bca232f037146de454
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/merge/SimpleMergeTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/revplot/PlotCommitListTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/CommitBuilder.java